mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-16 22:55:03 +00:00
Wrong return
This commit is contained in:
parent
788eb98a50
commit
6fe7664ce3
1 changed files with 2 additions and 4 deletions
|
@ -50,10 +50,8 @@ export const UnbanCmd = modActionsCmd({
|
|||
const config = pluginData.config.get();
|
||||
const guild = pluginData.client.guilds.cache.get(config.main_guild as Snowflake);
|
||||
if (!guild) {
|
||||
return {
|
||||
status: "failed",
|
||||
error: "Guild not found!",
|
||||
};
|
||||
sendErrorMessage(pluginData, msg.channel, "Main guild not found!");
|
||||
return;
|
||||
}
|
||||
|
||||
pluginData.state.serverLogs.ignoreLog(LogType.MEMBER_UNBAN, user.id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue