@@ -53,6 +53,13 @@ async def on_ready():
53
53
54
54
bot .add_view (DonateCommandView ()) # register view for persistent listening
55
55
56
+ # try to force sync commands
57
+ # calling an outdated command seems to force a sync
58
+ await bot .sync_commands (
59
+ commands = bot .commands ,
60
+ force = True ,
61
+ )
62
+
56
63
try :
57
64
os .environ ['DAILY_TASKS' ]
58
65
except KeyError :
@@ -181,7 +188,7 @@ async def channel(ctx: discord.ApplicationContext,
181
188
)
182
189
async def donate_command (ctx : discord .ApplicationContext ,
183
190
user : Option (
184
- input_type = discord .Member ,
191
+ discord .Member ,
185
192
description = user_mention_desc ,
186
193
required = False )
187
194
):
@@ -210,7 +217,7 @@ async def donate_command(ctx: discord.ApplicationContext,
210
217
)
211
218
async def random_command (ctx : discord .ApplicationContext ,
212
219
user : Option (
213
- input_type = discord .Member ,
220
+ discord .Member ,
214
221
description = user_mention_desc ,
215
222
required = False )
216
223
):
@@ -258,7 +265,7 @@ async def random_command(ctx: discord.ApplicationContext,
258
265
)
259
266
async def docs_command (ctx : discord .ApplicationContext ,
260
267
user : Option (
261
- input_type = discord .Member ,
268
+ discord .Member ,
262
269
description = user_mention_desc ,
263
270
required = False )
264
271
):
@@ -300,7 +307,7 @@ async def docs_command(ctx: discord.ApplicationContext,
300
307
)
301
308
async def refund_command (ctx : discord .ApplicationContext ,
302
309
user : Option (
303
- input_type = discord .Member ,
310
+ discord .Member ,
304
311
description = user_mention_desc ,
305
312
required = False )
306
313
):
0 commit comments