@@ -69,7 +69,7 @@ def __init__(
6969 self .guild_id = int (_json ["guild_id" ]) if "guild_id" in _json .keys () else None
7070 if self .guild and self ._author_menus_id :
7171 self .author_menus = discord .Member (
72- data = self ._author_menus_id [self ._author_menus_id ],
72+ data = self ._author_menus_id [[ id for id in self ._author_menus_id ][ 0 ] ],
7373 state = self .bot ._connection
7474 )
7575 else :
@@ -80,11 +80,12 @@ def __init__(
8080 self .channel_id = int (_json ["channel_id" ])
8181 self .message_menus = None
8282 try :
83- if self ._message_menu_id :
83+ if self ._message_menu_id != None :
84+ _data = self ._message_menu_id [[id for id in self ._message_menu_id ][0 ]]
8485 self .message_menus = model .SlashMessage (
8586 state = self .bot ._connection ,
8687 channel = _discord .get_channel (self .channel_id ),
87- data = self . _message_menu_id [ self . _message_menu_id ] ,
88+ data = _data ,
8889 _http = _http ,
8990 interaction_token = self ._token ,
9091 )
@@ -97,7 +98,7 @@ def __init__(
9798 data = _json ["member" ], state = self .bot ._connection , guild = self .guild
9899 )
99100 elif self .guild_id :
100- self .author = discord .User (data = _json ["member" ]["user" ], state = self .bot ._connection )
101+ self .author = discord .Member (data = _json ["member" ]["user" ], state = self .bot ._connection )
101102 else :
102103 self .author = discord .User (data = _json ["user" ], state = self .bot ._connection )
103104 self .created_at : datetime .datetime = snowflake_time (int (self .interaction_id ))
0 commit comments