You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, the issue is that the logging module doesn't have any handlers set up so you won't get any output.
Running the bot with bot.start() means setting up logging is up to you - to quickly add a basic logging setup you can use the setup_logging() utility, for example:
This definitely seems like a code issue rather than an issue with the library, but I'd like to point out a few things surrounding your code.
You should not be creating a manual HTTP request via aiohttp over the library's methods as unlike aiohttp, the library handles ratelimiting that may come from Discord. Use the Guild.fetch_ban method instead!
Add some print calls around your code so you can see if it's a problem with one of your conditionals
Don't use remove_command to remove the default help command, pass help_command=None to the bot constructor.
replied_user goes inside the allowed_mentions value with AllowedMentions as its type.
sync_commands_debug= True, sync_commands=True this is pointless
anti = 'on' Use a boolean!
And consider using an external file for placing your token in!
Another problem with your code on_audit_log_entry_create
Does not get a guild object but a AuditLogEntry
So your guild.audit_logs call is invalid because it is not a guild object.
Also just think about it why would you need to fetch an audit log entry in the event that is listening for the creation of an audit log entry.
Summary
Fix Audit log Entry of Integration Create Which Gives No Log in Return
Reproduction Steps
i HAVE DROPPED THE SNIPPET OF THE CODE BELOW ALSO IF THERES SOMETHING WRONG FROM MY SIDE PLEASE CORRECT ME OUT
Minimal Reproducible Code
Expected Results
USER SHOULD BE LOGGED / BANNED BUT NO AUDIT LOG ENTRY WAS LOGGED THUS THIS MADE THE REASON TO BREAK THE FLOW OF WHOLE EVENT
Actual Results
NONE THERE WERE NO ACTION BEING UNDERTAKEN BY THE CODE WHICH I HAVE SHOWN
Intents
discord.Intents.all()
System Information
Checklist
Additional Context
Nothing just i want to say is this problem from discord api side or a bug into dpy wrapper
The text was updated successfully, but these errors were encountered: