Skip to content

Commit

Permalink
add fix for channelTypes in channel options
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodentman87 committed May 17, 2022
1 parent 9c4373a commit 61bc5f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "slashasaurus",
"version": "0.8.0",
"version": "0.8.1",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"license": "MIT",
Expand Down
8 changes: 6 additions & 2 deletions src/utilityTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,12 @@ interface ReadonlyApplicationCommandNonOptionsData
interface ReadonlyApplicationCommandChannelOptionData
extends ReadonlyBaseApplicationCommandOptionsData {
readonly type: CommandOptionChannelResolvableType;
readonly channelTypes?: ExcludeEnum<typeof ChannelTypes, 'UNKNOWN'>[];
readonly channel_types?: Exclude<ChannelTypes, ChannelTypes.UNKNOWN>[];
readonly channelTypes?: ReadonlyArray<
ExcludeEnum<typeof ChannelTypes, 'UNKNOWN'>
>;
readonly channel_types?: ReadonlyArray<
Exclude<ChannelTypes, ChannelTypes.UNKNOWN>
>;
}

interface ReadonlyApplicationCommandChoicesData
Expand Down

0 comments on commit 61bc5f8

Please sign in to comment.