Skip to content

Commit 4c5437c

Browse files
authored
Added change to on_socket_response
1 parent a990212 commit 4c5437c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

discord_slash/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,7 @@ async def process_options(self, guild: discord.Guild, options: list, connector:
649649

650650
# This is to temporarily fix Issue #97, that on Android device
651651
# does not give option type from API.
652+
print(temporary_auto_convert)
652653
if "type" not in x:
653654
x["type"] = temporary_auto_convert[x["name"]]
654655

@@ -738,7 +739,7 @@ async def on_socket_response(self, msg):
738739
# does not give option type from API.
739740
temporary_auto_convert = {}
740741
for x in selected_cmd.options:
741-
temporary_auto_convert[x["name"]] = x["type"]
742+
temporary_auto_convert[x["name"].lower()] = x["type"]
742743

743744
args = await self.process_options(ctx.guild, to_use["data"]["options"], selected_cmd.connector, temporary_auto_convert) \
744745
if "options" in to_use["data"] else {}

0 commit comments

Comments
 (0)