Skip to content

Commit

Permalink
types(BaseInteraction): appPermissions not null in guilds (#9601)
Browse files Browse the repository at this point in the history
types(BaseInteraction): allow `appPermissions` only in guilds

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
Jiralite and kodiakhq[bot] committed Jun 9, 2023
1 parent 75308f2 commit 6c2242f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1764,7 +1764,7 @@ export class BaseInteraction<Cached extends CacheType = CacheType> extends Base
public type: InteractionType;
public user: User;
public version: number;
public appPermissions: Readonly<PermissionsBitField> | null;
public appPermissions: CacheTypeReducer<Cached, Readonly<PermissionsBitField>>;
public memberPermissions: CacheTypeReducer<Cached, Readonly<PermissionsBitField>>;
public locale: Locale;
public guildLocale: CacheTypeReducer<Cached, Locale>;
Expand Down

0 comments on commit 6c2242f

Please sign in to comment.