#need help with raw api
1 messages · Page 1 of 1 (latest)
You need set the header
i do what you mean?
X-Audit-Log-Reason
it’s a different reason for each listener
so
wouldnt putting that in the headers be wrong?
I dont get it ngl
using the X-Audit-Log-Reason header is the proper way to do this - a reason field used to work for the ban endpoint in particular, but almost no others
worth mentioning that you don't need full member objects for these operations, you can do guild.ban(discord.Object(<user id>)) just as well
could do bot.http if haven't Guild object and only ID
(they used discord in the code snippet, I didn't bother mentioning it
)
then they'd go to another server
not documented, but that works as well, sure
what
how would i define reason
X-Audit-Log-Reason is HTTP header
ik
, headers={'X-...': reason})
disnake/http.py line 859
def ban(
Marked the thread as solved. If your question has not been answered, please open a new thread in #1019642966526140566.