Skip to content

Commit 4d83651

Browse files
committed
chore: temporarily disable permissions
1 parent 06fde80 commit 4d83651

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.changeset/metal-glasses-repeat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'jellycommands': patch
3+
---
4+
5+
temporary disable permissions

packages/jellycommands/src/JellyCommands/commands/CommandManager.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,18 @@ export class CommandManager {
189189
});
190190
}
191191

192+
if (permissionData.length) {
193+
throw new Error(
194+
'Discord made breaking changes to their API for permissions, whilst we work out how to deal with that we have disabled permissions feature to stop bots from breaking. Track progress here https://github.com/ghostdevv/jellycommands/issues/108',
195+
);
196+
}
197+
192198
// Set the permissions
193-
await request(
194-
'put',
195-
Routes.guildApplicationCommandsPermissions(clientId, guildId),
196-
permissionData,
197-
);
199+
// await request(
200+
// 'put',
201+
// Routes.guildApplicationCommandsPermissions(clientId, guildId),
202+
// permissionData,
203+
// );
198204
}
199205

200206
return commandIdMap;

0 commit comments

Comments
 (0)