diff --git a/typings/index.d.ts b/typings/index.d.ts index b432fcb6b..eea94c94c 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1408,8 +1408,8 @@ export class Message extends Base { public editedTimestamp: number | null; public embeds: MessageEmbed[]; public groupActivityApplication: ClientApplication | null; - public guildId: Snowflake | null; - public readonly guild: Guild | null; + public guildId: If; + public readonly guild: If; public readonly hasThread: boolean; public id: Snowflake; public interaction: MessageInteraction | null; diff --git a/typings/index.test-d.ts b/typings/index.test-d.ts index 36c0891e8..5dba199c7 100644 --- a/typings/index.test-d.ts +++ b/typings/index.test-d.ts @@ -533,6 +533,8 @@ client.on('messageCreate', async message => { const buttonCollector = message.createMessageComponentCollector({ componentType: 'BUTTON' }); expectType>>(buttonCollector); expectType(message.channel); + expectType(message.guild); + expectType(message.member); } expectType(message.channel);