3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-16 22:55:03 +00:00

add default option

This commit is contained in:
iamshoXy 2023-07-29 15:07:33 +02:00
parent bf9d27dad0
commit ac3eb74500
3 changed files with 24 additions and 22 deletions

View file

@ -42,7 +42,7 @@ export async function banUserId(
};
}
reason = reason || "No reason specified";
reason = reason || (config.default_ban_reason || "No reason specified");
// Attempt to message the user *before* banning them, as doing it after may not be possible
const member = await resolveMember(pluginData.client, pluginData.guild, userId);