mirror of
https://github.com/nx-bat/discordbot-ng.git
synced 2026-09-22 10:29:10 -04:00
Update kick reason on e621 ban
This commit is contained in:
@@ -125,7 +125,7 @@ async function kickDiscordAccounts(data: BanUpdate) {
|
|||||||
for (const id of discordIds) {
|
for (const id of discordIds) {
|
||||||
const member = await guild.members.fetch(id);
|
const member = await guild.members.fetch(id);
|
||||||
|
|
||||||
if (member) await member.kick(data.ban.reason);
|
if (member) await member.kick(`Banned from e621 by: https://e621.net/users/${data.ban.banner_id}. Reason:\n${data.ban.reason}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user