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:
parent
bf9d27dad0
commit
ac3eb74500
3 changed files with 24 additions and 22 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue