interactions.py icon indicating copy to clipboard operation
interactions.py copied to clipboard

[BUG] AuditLogEventType 192 missing

Open ryandiamond23 opened this issue 1 year ago • 3 comments

Library Version

stable

Describe the Bug

Seeing the following error in bot logs: Class AuditLogEventType received an invalid and unexpected value 192, a new enum item will be created to represent this value. Please update interactions.py or report this issue on GitHub - https://github.com/interactions-py/interactions.py/issues

Steps to Reproduce

TBD, trying to determine which audit log event corresponds to ID 192 so that the enums can be updated.

Expected Results

No AuditLogEventType event code errors shown in bot log output.

Minimal Reproducible Code

No response

Traceback

No response

Checklist

  • [X] I have searched the open issues for duplicates.
  • [X] I have shown the entire traceback, if possible.
  • [X] I have removed my token from display, if visible.
  • [X] I have attempted to debug this myself, and I believe this issue is with the library

Additional Information

Enum needs to be set, but need to first identify what event 192 is. Discord Docs don't have anything listed, either.

https://discord.com/developers/docs/resources/audit-log#audit-log-change-object-audit-log-change-exceptions https://github.com/interactions-py/interactions.py/blob/stable/interactions/models/discord/enums.py#L992

ryandiamond23 avatar Dec 31 '23 14:12 ryandiamond23

Opening this issue to track -- I'm trying to identify which event 192 corresponds to and will open a MR with the fix once identified.

ryandiamond23 avatar Dec 31 '23 14:12 ryandiamond23

@ryandiamond23 192 = channel status added/changed 193 = channel status removed image

Mias15 avatar Jan 14 '24 01:01 Mias15

here is what's from the canary dist that isn't covered by the enum if someone would like to contribute it. The names may change in the future like they have in the past (we don't match very accurately anymore)

{
                VOICE_CHANNEL_STATUS_CREATE: 192,
                VOICE_CHANNEL_STATUS_DELETE: 193,
                CLYDE_AI_PROFILE_UPDATE: 194,
                GUILD_SCHEDULED_EVENT_EXCEPTION_CREATE: 200,
                GUILD_SCHEDULED_EVENT_EXCEPTION_UPDATE: 201,
                GUILD_SCHEDULED_EVENT_EXCEPTION_DELETE: 202

Scrxtchy avatar Jan 15 '24 23:01 Scrxtchy