shayypy / guilded.py

Asynchronous Guilded API wrapper for Python
https://guildedpy.rtfd.io
Other
135 stars 25 forks source link

Event triggers #61

Closed populated closed 9 months ago

populated commented 9 months ago

So, I was making an anti-nuke and anti-raid bot, but it seems like the events don't provide information about the person who triggered the event, which means I can't implement features like whitelisting, etc.

shayypy commented 9 months ago

What events in particular, and what information are you expecting? The library attempts to provide as much detail as possible from the data itself

populated commented 9 months ago

What events in particular, and what information are you expecting? The library attempts to provide as much detail as possible from the data itself

So, for example, I'm monitoring events like RoleCreateEvent, and I want to check if the person who triggered this event is whitelisted from the anti-nuke. The thing is, I couldn't find anything relating to how to check who triggered the event. Is it even possible to figure this out?

shayypy commented 9 months ago

No, if Guilded doesn't provide it in the raw event then libraries can't reliably do so either. I don't think there's any way to see who created a role.

populated commented 9 months ago

No, if Guilded doesn't provide it in the raw event then libraries can't reliably do so either. I don't think there's any way to see who created a role.

That's unfortunate; I guess I have to scratch off that idea. Anti-raid should work fine. Thank you though.