mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +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",
|
"entry": "./mod.ts",
|
||||||
"description": "A brand new bleeding edge non bloated Discord library",
|
"description": "A brand new bleeding edge non bloated Discord library",
|
||||||
"homepage": "https://github.com/oasisjs/biscuit",
|
"homepage": "https://github.com/oasisjs/biscuit",
|
||||||
"version": "0.2.1",
|
"version": "0.2.2",
|
||||||
"releaseType": "patch",
|
"releaseType": "patch",
|
||||||
"unstable": false,
|
"unstable": false,
|
||||||
"unlisted": false,
|
"unlisted": false,
|
||||||
|
@ -1040,7 +1040,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.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,
|
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