Skip to content

Commit 826b9dd

Browse files
authored
feat: Suppress voice state console logs. (#967)
1 parent e5a808f commit 826b9dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interactions/api/gateway/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def _dispatch_event(self, event: str, data: dict) -> None:
390390
log.warning(
391391
"Context is being created for the interaction, but no type is specified. Skipping..."
392392
)
393-
elif event != "TYPING_START":
393+
elif event not in {"TYPING_START", "VOICE_STATE_UPDATE", "VOICE_SERVER_UPDATE"}:
394394
name: str = event.lower()
395395
try:
396396

@@ -501,7 +501,7 @@ def __modify_guild_cache():
501501
self._dispatch.dispatch(f"on_{name}", obj)
502502

503503
except AttributeError as error:
504-
log.fatal(f"An error occured dispatching {name}: {error}")
504+
log.fatal(f"An error occurred dispatching {name}: {error}")
505505

506506
def __contextualize(self, data: dict) -> "_Context":
507507
"""

0 commit comments

Comments
 (0)