mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-05 06:26:08 +00:00
fix: supress embeds
This commit is contained in:
parent
998fd7cb73
commit
0f68995136
@ -103,11 +103,11 @@ export class Message implements Model {
|
||||
async suppressEmbeds(suppress: true): Promise<Message>;
|
||||
async suppressEmbeds(suppress: false): Promise<Message | undefined>;
|
||||
async suppressEmbeds(suppress = true) {
|
||||
if (this.flags === MessageFlags.SUPPRESS_EMBEDS && suppress === false) {
|
||||
if (this.flags === MessageFlags.SupressEmbeds && suppress === false) {
|
||||
return;
|
||||
}
|
||||
|
||||
const message = await this.edit({ flags: MessageFlags.SUPPRESS_EMBEDS });
|
||||
const message = await this.edit({ flags: MessageFlags.SupressEmbeds });
|
||||
|
||||
return message;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user