mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +00:00
Fix Guild.edit: passing current guild id
This commit is contained in:
parent
e7f4348de0
commit
abe4068001
@ -1095,7 +1095,7 @@ export class Guild extends BaseGuild implements Model {
|
|||||||
* @returns A promise that resolves to the edited guild.
|
* @returns A promise that resolves to the edited guild.
|
||||||
*/
|
*/
|
||||||
async edit(options: GuildEditOptions): Promise<Guild> {
|
async edit(options: GuildEditOptions): Promise<Guild> {
|
||||||
const guild = await this.session.rest.patch<DiscordGuild>(GUILDS(), {
|
const guild = await this.session.rest.patch<DiscordGuild>(GUILDS(this.id), {
|
||||||
name: options.name,
|
name: options.name,
|
||||||
afk_channel_id: options.afkChannelId,
|
afk_channel_id: options.afkChannelId,
|
||||||
afk_timeout: options.afkTimeout,
|
afk_timeout: options.afkTimeout,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user