feat(Guild): mark as read;

This commit is contained in:
TheDevYellowy
2022-08-02 00:26:12 -05:00
parent 8fc282f2eb
commit 8797069acf
2 changed files with 12 additions and 0 deletions

View File

@@ -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<Guild>}