mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-21 16:55:03 +00:00
Upgrade DJS, fix bugs
This commit is contained in:
parent
2977363dc0
commit
bbf52a5951
17 changed files with 123 additions and 66 deletions
|
@ -87,7 +87,7 @@ export const CleanCmd = utilityCmd({
|
|||
return;
|
||||
}
|
||||
|
||||
const targetChannel = args.channel ? pluginData.guild.channels.cache.get(args.channel) : msg.channel;
|
||||
const targetChannel = args.channel ? pluginData.guild.channels.cache.get(args.channel as Snowflake) : msg.channel;
|
||||
if (!targetChannel || !(targetChannel instanceof TextChannel)) {
|
||||
sendErrorMessage(pluginData, msg.channel, `Invalid channel specified`);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue