Audit Log API Support
It is simple. We need a way to know when a new audit log is being created.
Because now what we do is whenever a player is getting banned (for example), we try to get the last audit log and print the reason. This sometimes work but usually not because of server lag and audit log being created after we pull the latest audit log, it will give you the log before that.
This is a highly requested feature in the Discord API Community, Please consider adding!
-
An event would be really useful.
Unfortunately, I suspect that this might be nontrivial to implement. Currently, most events are sent to every client. For an Audit Log entry creation event, it would need to only be sent to users who have the ability to access the Log. For everyone else, which is often the majority of users in a guild, it would be a waste of bandwidth and computation. If we don't hear back from Discord about this, it may be because they are unwilling to commit the development time which would be necessary for implementation. Presumably, an upside is that data usage could be limited if only the ID of a new entry is sent, as opposed to the entire contents of the entry.
I'd love to see an event introduced for this. It would enhance the functionality of a lot of bots which a lot of guilds rely upon. I hope Discord deem it to be worth the engineering time.
1
Iniciar sesión para dejar un comentario.
Comentarios
1 comentario