Skip to content

Commit a6ae2bd

Browse files
committed
Fix after merging master
1 parent c8abe6c commit a6ae2bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

discord/bot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ async def register_commands(self) -> None:
240240
type=i["type"],
241241
)
242242
cmd.id = i["id"]
243-
self.application_commands[cmd.id] = cmd
243+
self._application_commands[cmd.id] = cmd
244244

245245
# Permissions (Roles will be converted to IDs just before Upsert for Global Commands)
246246
global_permissions.append({"id": i["id"], "permissions": cmd.permissions})
@@ -275,7 +275,7 @@ async def register_commands(self) -> None:
275275
for i in cmds:
276276
cmd = find(lambda cmd: cmd.name == i["name"] and cmd.type == i["type"] and int(i["guild_id"]) in cmd.guild_ids, self.pending_application_commands)
277277
cmd.id = i["id"]
278-
self.application_commands[cmd.id] = cmd
278+
self._application_commands[cmd.id] = cmd
279279

280280
# Permissions
281281
permissions = [

0 commit comments

Comments
 (0)