Skip to content

Commit

Permalink
typings(CommandInteractionOptionResolver): Document & type thread cha…
Browse files Browse the repository at this point in the history
…nnels (#6521)
  • Loading branch information
Jiralite committed Aug 29, 2021
1 parent a693254 commit 774e960
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/structures/BaseCommandInteraction.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class BaseCommandInteraction extends Interaction {
* subcommand (group)
* @property {User} [user] The resolved user
* @property {GuildMember|APIGuildMember} [member] The resolved member
* @property {GuildChannel|APIChannel} [channel] The resolved channel
* @property {GuildChannel|ThreadChannel|APIChannel} [channel] The resolved channel
* @property {Role|APIRole} [role] The resolved role
*/

Expand Down
2 changes: 1 addition & 1 deletion src/structures/CommandInteractionOptionResolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class CommandInteractionOptionResolver {
* Gets a channel option.
* @param {string} name The name of the option.
* @param {boolean} [required=false] Whether to throw an error if the option is not found.
* @returns {?(GuildChannel|APIGuildChannel)}
* @returns {?(GuildChannel|ThreadChannel|APIChannel)}
* The value of the option, or null if not set and not required.
*/
getChannel(name, required = false) {
Expand Down
2 changes: 1 addition & 1 deletion typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3359,7 +3359,7 @@ export interface CommandInteractionOption {
options?: CommandInteractionOption[];
user?: User;
member?: GuildMember | APIInteractionDataResolvedGuildMember;
channel?: GuildChannel | APIInteractionDataResolvedChannel;
channel?: GuildChannel | ThreadChannel | APIInteractionDataResolvedChannel;
role?: Role | APIRole;
message?: Message | APIMessage;
}
Expand Down

0 comments on commit 774e960

Please sign in to comment.