We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e77d6e commit 29a93acCopy full SHA for 29a93ac
discord/bot.py
@@ -186,6 +186,10 @@ async def register_commands(self) -> None:
186
cmds = await self.http.bulk_upsert_global_commands(self.user.id, commands)
187
188
for i in cmds:
189
+ # Discord seems to now return None instead of an empty string...
190
+ if i["description"] is None:
191
+ i['description'] = ""
192
+
193
cmd = get(
194
self.pending_application_commands,
195
name=i["name"],
@@ -225,6 +229,10 @@ async def register_commands(self) -> None:
225
229
raise
226
230
else:
227
231
232
233
234
235
228
236
237
238
0 commit comments