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

4
typings/index.d.ts vendored
View File

@@ -1408,8 +1408,8 @@ export class Message<Cached extends boolean = boolean> 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<Cached, Snowflake>;
public readonly guild: If<Cached, Guild>;
public readonly hasThread: boolean;
public id: Snowflake;
public interaction: MessageInteraction | null;