How to add a reason in Audit Log on user kick/ban? [closed]
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I am programming a discord BOT in Python and I an working on a kick and ban command. I'm trying to make the BOT change the Audit Log of the server to add a "With reason: " to add the responsible moderator. Do anyone know how I can do that (like in this image).
python discord.py
closed as too broad by jonrsharpe, mrks, grizzthedj, jps, Bob Dalgleish Jan 3 at 13:31
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
I am programming a discord BOT in Python and I an working on a kick and ban command. I'm trying to make the BOT change the Audit Log of the server to add a "With reason: " to add the responsible moderator. Do anyone know how I can do that (like in this image).
python discord.py
closed as too broad by jonrsharpe, mrks, grizzthedj, jps, Bob Dalgleish Jan 3 at 13:31
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
I am programming a discord BOT in Python and I an working on a kick and ban command. I'm trying to make the BOT change the Audit Log of the server to add a "With reason: " to add the responsible moderator. Do anyone know how I can do that (like in this image).
python discord.py
I am programming a discord BOT in Python and I an working on a kick and ban command. I'm trying to make the BOT change the Audit Log of the server to add a "With reason: " to add the responsible moderator. Do anyone know how I can do that (like in this image).
python discord.py
python discord.py
edited Jan 3 at 12:25


jonrsharpe
79k11111223
79k11111223
asked Jan 3 at 12:05


TheOneMusicTheOneMusic
328
328
closed as too broad by jonrsharpe, mrks, grizzthedj, jps, Bob Dalgleish Jan 3 at 13:31
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
closed as too broad by jonrsharpe, mrks, grizzthedj, jps, Bob Dalgleish Jan 3 at 13:31
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
In discord.py rewrite
you can use the ban coroutine
ban(user, *, reason=None, delete_message_days=1)
where the reason is :
reason (Optional[str]) – The reason the user got banned.
Ok thanks but what about the kick command ?
– TheOneMusic
Jan 3 at 16:15
The kick command The documentation is a good source of information
– Tristo
Jan 3 at 16:17
It doesn't work. It says error
– TheOneMusic
Jan 3 at 16:21
Same for the ban command :( Do I need to do :import discord.py rewrite
?
– TheOneMusic
Jan 3 at 16:21
Something similar, check this out stackoverflow.com/questions/50686388/…
– Tristo
Jan 3 at 16:23
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
In discord.py rewrite
you can use the ban coroutine
ban(user, *, reason=None, delete_message_days=1)
where the reason is :
reason (Optional[str]) – The reason the user got banned.
Ok thanks but what about the kick command ?
– TheOneMusic
Jan 3 at 16:15
The kick command The documentation is a good source of information
– Tristo
Jan 3 at 16:17
It doesn't work. It says error
– TheOneMusic
Jan 3 at 16:21
Same for the ban command :( Do I need to do :import discord.py rewrite
?
– TheOneMusic
Jan 3 at 16:21
Something similar, check this out stackoverflow.com/questions/50686388/…
– Tristo
Jan 3 at 16:23
add a comment |
In discord.py rewrite
you can use the ban coroutine
ban(user, *, reason=None, delete_message_days=1)
where the reason is :
reason (Optional[str]) – The reason the user got banned.
Ok thanks but what about the kick command ?
– TheOneMusic
Jan 3 at 16:15
The kick command The documentation is a good source of information
– Tristo
Jan 3 at 16:17
It doesn't work. It says error
– TheOneMusic
Jan 3 at 16:21
Same for the ban command :( Do I need to do :import discord.py rewrite
?
– TheOneMusic
Jan 3 at 16:21
Something similar, check this out stackoverflow.com/questions/50686388/…
– Tristo
Jan 3 at 16:23
add a comment |
In discord.py rewrite
you can use the ban coroutine
ban(user, *, reason=None, delete_message_days=1)
where the reason is :
reason (Optional[str]) – The reason the user got banned.
In discord.py rewrite
you can use the ban coroutine
ban(user, *, reason=None, delete_message_days=1)
where the reason is :
reason (Optional[str]) – The reason the user got banned.
answered Jan 3 at 12:14


TristoTristo
1,5264923
1,5264923
Ok thanks but what about the kick command ?
– TheOneMusic
Jan 3 at 16:15
The kick command The documentation is a good source of information
– Tristo
Jan 3 at 16:17
It doesn't work. It says error
– TheOneMusic
Jan 3 at 16:21
Same for the ban command :( Do I need to do :import discord.py rewrite
?
– TheOneMusic
Jan 3 at 16:21
Something similar, check this out stackoverflow.com/questions/50686388/…
– Tristo
Jan 3 at 16:23
add a comment |
Ok thanks but what about the kick command ?
– TheOneMusic
Jan 3 at 16:15
The kick command The documentation is a good source of information
– Tristo
Jan 3 at 16:17
It doesn't work. It says error
– TheOneMusic
Jan 3 at 16:21
Same for the ban command :( Do I need to do :import discord.py rewrite
?
– TheOneMusic
Jan 3 at 16:21
Something similar, check this out stackoverflow.com/questions/50686388/…
– Tristo
Jan 3 at 16:23
Ok thanks but what about the kick command ?
– TheOneMusic
Jan 3 at 16:15
Ok thanks but what about the kick command ?
– TheOneMusic
Jan 3 at 16:15
The kick command The documentation is a good source of information
– Tristo
Jan 3 at 16:17
The kick command The documentation is a good source of information
– Tristo
Jan 3 at 16:17
It doesn't work. It says error
– TheOneMusic
Jan 3 at 16:21
It doesn't work. It says error
– TheOneMusic
Jan 3 at 16:21
Same for the ban command :( Do I need to do :
import discord.py rewrite
?– TheOneMusic
Jan 3 at 16:21
Same for the ban command :( Do I need to do :
import discord.py rewrite
?– TheOneMusic
Jan 3 at 16:21
Something similar, check this out stackoverflow.com/questions/50686388/…
– Tristo
Jan 3 at 16:23
Something similar, check this out stackoverflow.com/questions/50686388/…
– Tristo
Jan 3 at 16:23
add a comment |