Skip to content

Leave Command #912

Answered by adamdev-id
jstevena asked this question in Ideas
Sep 19, 2021 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

create a leave.js

const i18n = require("../util/i18n");

module.exports = {
  name: "leave",
  cooldown: 3,
  aliases: ["quit"],
  description: i18n.__("Disconnects the Bot"),
  execute(message) {
    const { channel } = message.member.voice;
    channel.leave();
    message
    .channel
    .send(i18n.__("Disconnected from Channel"))
    .catch(console.error);
  }
};

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@jstevena
Comment options

Answer selected by jstevena
Comment options

You must be logged in to vote
1 reply
@adamdev-id
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants