3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 12:25:02 +00:00

Add command to kick from VC (#124)

This commit is contained in:
Nils 2021-01-28 00:28:26 +01:00 committed by GitHub
parent c1fc9744e3
commit 1c24910a20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 66 additions and 3 deletions

View file

@ -26,8 +26,6 @@ export const VcmoveCmd = utilityCmd({
async run({ message: msg, args, pluginData }) {
let channel: VoiceChannel;
const foo = args.member;
if (isSnowflake(args.channel)) {
// Snowflake -> resolve channel directly
const potentialChannel = pluginData.guild.channels.get(args.channel);
@ -78,7 +76,7 @@ export const VcmoveCmd = utilityCmd({
channelID: channel.id,
});
} catch (e) {
msg.channel.createMessage(errorMessage("Failed to move member"));
sendErrorMessage(pluginData, msg.channel, "Failed to move member");
return;
}