File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ class ApplicationCommand extends Base {
145145 * Whether the command can be used in DMs
146146 * <info>This property is always `null` on guild commands</info>
147147 * @type {?boolean }
148+ * @deprecated Use {@link ApplicationCommand#contexts} instead.
148149 */
149150 this . dmPermission = data . dm_permission ;
150151 } else {
Original file line number Diff line number Diff line change @@ -420,6 +420,7 @@ class Message extends Base {
420420 * @property {string } commandName The name of the interaction's application command,
421421 * as well as the subcommand and subcommand group, where applicable
422422 * @property {User } user The user that invoked the interaction
423+ * @deprecated Use {@link Message#interactionMetadata} instead.
423424 */
424425
425426 if ( data . interaction ) {
Original file line number Diff line number Diff line change @@ -445,6 +445,7 @@ export class ApplicationCommand<PermissionsFetchType = {}> extends Base {
445445 public description : string ;
446446 public descriptionLocalizations : LocalizationMap | null ;
447447 public descriptionLocalized : string | null ;
448+ /** @deprecated Use {@link ApplicationCommand.contexts} instead */
448449 public dmPermission : boolean | null ;
449450 public guild : Guild | null ;
450451 public guildId : Snowflake | null ;
@@ -2100,6 +2101,7 @@ export class Message<InGuild extends boolean = boolean> extends Base {
21002101 public get guild ( ) : If < InGuild , Guild > ;
21012102 public get hasThread ( ) : boolean ;
21022103 public id : Snowflake ;
2104+ /** @deprecated Use {@link Message.interactionMetadata} instead */
21032105 public interaction : MessageInteraction | null ;
21042106 public interactionMetadata : MessageInteractionMetadata | null ;
21052107 public get member ( ) : GuildMember | null ;
You can’t perform that action at this time.
0 commit comments