fix(typings): bot cannot be null (#4719)

This commit is contained in:
Sugden
2020-08-27 15:40:36 +01:00
committed by GitHub
parent cfc68677ee
commit e0e271162c

3
typings/index.d.ts vendored
View File

@@ -2991,7 +2991,8 @@ declare module 'discord.js' {
type PartialTypes = 'USER' | 'CHANNEL' | 'GUILD_MEMBER' | 'MESSAGE' | 'REACTION';
interface PartialUser extends Partialize<User, 'flags' | 'locale' | 'system' | 'tag' | 'username'> {
interface PartialUser extends Partialize<User, 'bot' | 'flags' | 'locale' | 'system' | 'tag' | 'username'> {
bot: User['bot'];
flags: User['flags'];
locale: User['locale'];
system: User['system'];