mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 21:16:09 +00:00
fix: Guild.edit
This commit is contained in:
parent
08b8df41fa
commit
be33bc5e2d
2
egg.json
2
egg.json
@ -4,7 +4,7 @@
|
||||
"entry": "./mod.ts",
|
||||
"description": "A brand new bleeding edge non bloated Discord library",
|
||||
"homepage": "https://github.com/oasisjs/biscuit",
|
||||
"version": "0.2.1",
|
||||
"version": "0.2.2",
|
||||
"releaseType": "patch",
|
||||
"unstable": false,
|
||||
"unlisted": false,
|
||||
|
@ -1040,7 +1040,7 @@ export class Guild extends BaseGuild implements Model {
|
||||
* @returns A promise that resolves to the edited guild.
|
||||
*/
|
||||
async edit(options: GuildEditOptions): Promise<Guild> {
|
||||
const guild = await this.session.rest.runMethod<DiscordGuild>(this.session.rest, 'PATCH', Routes.GUILDS(), {
|
||||
const guild = await this.session.rest.runMethod<DiscordGuild>(this.session.rest, 'PATCH', Routes.GUILDS(this.id), {
|
||||
name: options.name,
|
||||
afk_channel_id: options.afkChannelId,
|
||||
afk_timeout: options.afkTimeout,
|
||||
|
Loading…
x
Reference in New Issue
Block a user