@@ -328,6 +328,7 @@ async def to_dict(self):
328328 "options" : selected .options or [],
329329 "default_permission" : selected .default_permission ,
330330 "permissions" : {},
331+ "type" : 1
331332 }
332333 if y in selected .permissions :
333334 command_dict ["permissions" ][y ] = selected .permissions [y ]
@@ -341,6 +342,7 @@ async def to_dict(self):
341342 "options" : selected .options or [],
342343 "default_permission" : selected .default_permission ,
343344 "permissions" : selected .permissions or {},
345+ "type" : 1
344346 }
345347 wait ["global" ][x ] = copy .deepcopy (command_dict )
346348
@@ -363,6 +365,7 @@ async def to_dict(self):
363365 "description" : sub .description or "No Description." ,
364366 "type" : model .SlashCommandOptionType .SUB_COMMAND ,
365367 "options" : sub .options or [],
368+ "type" : 1
366369 }
367370 if sub .allowed_guild_ids :
368371 for z in sub .allowed_guild_ids :
@@ -376,6 +379,7 @@ async def to_dict(self):
376379 "description" : "No Description." ,
377380 "type" : model .SlashCommandOptionType .SUB_COMMAND_GROUP ,
378381 "options" : [],
382+ "type" : 1
379383 }
380384 for z in sub :
381385 sub_sub = sub [z ]
@@ -384,6 +388,7 @@ async def to_dict(self):
384388 "description" : sub_sub .description or "No Description." ,
385389 "type" : model .SlashCommandOptionType .SUB_COMMAND ,
386390 "options" : sub_sub .options or [],
391+ "type" : 1
387392 }
388393 if sub_sub .allowed_guild_ids :
389394 for i in sub_sub .allowed_guild_ids :
0 commit comments