mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
types(Message): guild should be non-null when message is in guild (#6933)
This commit is contained in:
@@ -533,6 +533,8 @@ client.on('messageCreate', async message => {
|
||||
const buttonCollector = message.createMessageComponentCollector({ componentType: 'BUTTON' });
|
||||
expectType<InteractionCollector<ButtonInteraction<'cached'>>>(buttonCollector);
|
||||
expectType<GuildTextBasedChannel>(message.channel);
|
||||
expectType<Guild>(message.guild);
|
||||
expectType<GuildMember | null>(message.member);
|
||||
}
|
||||
|
||||
expectType<TextBasedChannels>(message.channel);
|
||||
|
||||
Reference in New Issue
Block a user