mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +00:00
fix: supress embeds
This commit is contained in:
parent
a0775f0b31
commit
330a83c83a
9
mod.ts
9
mod.ts
@ -1,3 +1,12 @@
|
||||
export * from "./session/mod.ts";
|
||||
export * from "./util/mod.ts";
|
||||
export * from "./vendor/external.ts";
|
||||
export * from "./structures/User.ts";
|
||||
export * from "./structures/Role.ts";
|
||||
export * from "./structures/Base.ts";
|
||||
export * from "./structures/Guild.ts";
|
||||
export * from "./structures/Member.ts";
|
||||
export * from "./structures/Message.ts";
|
||||
export * from "./structures/BaseGuild.ts";
|
||||
export * from "./structures/Attachment.ts";
|
||||
export * from "./structures/AnonymousGuild.ts";
|
||||
|
@ -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