diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 6cb2f1b..240207c 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -1429,6 +1429,17 @@ class Guild extends AnonymousGuild { return this.client.actions.GuildDelete.handle({ id: this.id }).guild; } + /** + * Marks the guild as read + * @returns {undefined} nothing :) + * @example + * const guild = client.guilds.fetch('222078108977594368'); + * guild.read(); + */ + async read() { + await this.client.api.guilds(this.id).ack.post(); + } + /** * Deletes the guild. * @returns {Promise} diff --git a/typings/index.d.ts b/typings/index.d.ts index a7bf9ea..289d88b 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1236,6 +1236,7 @@ export class Guild extends AnonymousGuild { public readonly maximumBitrate: number; public createTemplate(name: string, description?: string): Promise; public delete(): Promise; + public read(): undefined; public discoverySplashURL(options?: StaticImageURLOptions): string | null; public edit(data: GuildEditData, reason?: string): Promise; public editWelcomeScreen(data: WelcomeScreenEditData): Promise;