3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-23 09:35:02 +00:00

Change ... to single char ...

Co-authored-by: Almeida <almeidx@pm.me>
This commit is contained in:
Nils 2021-05-09 03:00:44 +02:00 committed by Dark
parent 5d84324b39
commit f2116c515e
No known key found for this signature in database
GPG key ID: 384C4B4F5B1E25A8

View file

@ -87,7 +87,7 @@ export async function banUserId(
const deleteMessageDays = Math.min(30, Math.max(0, banOptions.deleteMessageDays ?? 1)); 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 // 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) { if (reason && reason.length >= 490) {
reason = reason.substring(0, 487) + "..."; reason = reason.substring(0, 489) + "…";
} }
await pluginData.guild.bans.create(userId as Snowflake, { await pluginData.guild.bans.create(userId as Snowflake, {
days: deleteMessageDays, days: deleteMessageDays,