feat(Guild): mark as read;
This commit is contained in:
@@ -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>}
|
||||
|
Reference in New Issue
Block a user