fix: location of select values when dispatching for new select types
@@ -382,11 +382,13 @@ class WebSocketClient:
if _context.data.component_type.value not in {5, 6, 7, 8}:
__args.append(_context.data.values)
else:
+ _list = [] # temp storage for items
for value in _context.data._json.get("values"):
_data = self.__select_option_type_context(
_context, _context.data.component_type.value
) # resolved.
- __args.append(_data[value])
+ _list.append(_data[value])
+ __args.append(_list)
self._dispatch.dispatch("on_component", _context)
elif data["type"] == InteractionType.APPLICATION_COMMAND_AUTOCOMPLETE:
