mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-23 09:35:02 +00:00
Fix debug value
This commit is contained in:
parent
6e475324ce
commit
5d84324b39
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ export async function banUserId(
|
|||
const deleteMessageDays = Math.min(30, Math.max(0, banOptions.deleteMessageDays ?? 1));
|
||||
// Trim down reason to 490 words, API limit is 512 and we leave a gap to accomodate cross-ban bots
|
||||
if (reason && reason.length >= 490) {
|
||||
reason = reason.substring(0, 200) + "...";
|
||||
reason = reason.substring(0, 487) + "...";
|
||||
}
|
||||
await pluginData.guild.bans.create(userId as Snowflake, {
|
||||
days: deleteMessageDays,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue