types(Message): guild should be non-null when message is in guild (#6933)

This commit is contained in:
Suneet Tipirneni
2021-12-08 04:49:17 -05:00
committed by GitHub
parent b0937502d3
commit 1230bee9bc
2 changed files with 4 additions and 2 deletions

View File

@@ -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);