diff --git a/.changeset/twelve-flowers-tease.md b/.changeset/twelve-flowers-tease.md new file mode 100644 index 00000000..9f257827 --- /dev/null +++ b/.changeset/twelve-flowers-tease.md @@ -0,0 +1,5 @@ +--- +"guilded.js": patch +--- + +Added 'reason' property to ban manager diff --git a/bun.lockb b/bun.lockb index 8f7b1c96..f91cde19 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/packages/guilded.js/lib/managers/global/GuildBanManager.ts b/packages/guilded.js/lib/managers/global/GuildBanManager.ts index 6060a65a..47a3130a 100644 --- a/packages/guilded.js/lib/managers/global/GuildBanManager.ts +++ b/packages/guilded.js/lib/managers/global/GuildBanManager.ts @@ -70,10 +70,13 @@ export class GlobalGuildBanManager extends CacheableStructManager { + async ban(serverId: string, userId: string, reason?: string): Promise { const data = await this.client.rest.router.memberBans.serverMemberBanCreate({ serverId, userId, + requestBody: { + reason, + }, }); const newMemberBan = new MemberBan(this.client, { serverId,