fixed msic issues

This commit is contained in:
CorwinDev 2022-12-12 10:43:02 +01:00
parent c763873eb8
commit cac685ca7c
66 changed files with 103 additions and 103 deletions

View file

@ -9,7 +9,7 @@ module.exports = async (client, interaction, args) => {
}).then((cat) => { }).then((cat) => {
interaction.guild.channels.create({ interaction.guild.channels.create({
name: " Create Voice", name: " Create Voice",
type: "GUILD_VOICE", type: Discord.ChannelType.GuildVoice,
parent: cat.id, parent: cat.id,
permissionOverwrites: [ permissionOverwrites: [
{ {

View file

@ -12,7 +12,7 @@ module.exports = async (client, interaction, args) => {
if (choice == "birthdays") { if (choice == "birthdays") {
interaction.guild.channels.create({ interaction.guild.channels.create({
name: "birthdays", name: "birthdays",
type: "GUILD_TEXT" type: Discord.ChannelType.GuildText
}).then((ch) => { }).then((ch) => {
client.createChannelSetup(Birthdays, ch, interaction) client.createChannelSetup(Birthdays, ch, interaction)
}) })
@ -21,7 +21,7 @@ module.exports = async (client, interaction, args) => {
if (choice == "chatbot") { if (choice == "chatbot") {
interaction.guild.channels.create({ interaction.guild.channels.create({
name: "chatbot", name: "chatbot",
type: "GUILD_TEXT" type: Discord.ChannelType.GuildText
}).then((ch) => { }).then((ch) => {
client.createChannelSetup(Chatbot, ch, interaction) client.createChannelSetup(Chatbot, ch, interaction)
}) })
@ -30,7 +30,7 @@ module.exports = async (client, interaction, args) => {
if (choice == "reviews") { if (choice == "reviews") {
interaction.guild.channels.create({ interaction.guild.channels.create({
name: "reviews", name: "reviews",
type: "GUILD_TEXT" type: Discord.ChannelType.GuildText
}).then((ch) => { }).then((ch) => {
client.createChannelSetup(Review, ch, interaction) client.createChannelSetup(Review, ch, interaction)
}) })
@ -39,7 +39,7 @@ module.exports = async (client, interaction, args) => {
if (choice == "suggestions") { if (choice == "suggestions") {
interaction.guild.channels.create({ interaction.guild.channels.create({
name: "suggestions", name: "suggestions",
type: "GUILD_TEXT" type: Discord.ChannelType.GuildText
}).then((ch) => { }).then((ch) => {
client.createChannelSetup(Suggestion, ch, interaction) client.createChannelSetup(Suggestion, ch, interaction)
}) })
@ -48,7 +48,7 @@ module.exports = async (client, interaction, args) => {
if (choice == "starboard") { if (choice == "starboard") {
interaction.guild.channels.create({ interaction.guild.channels.create({
name: "starboard", name: "starboard",
type: "GUILD_TEXT" type: Discord.ChannelType.GuildText
}).then((ch) => { }).then((ch) => {
client.createChannelSetup(StarBoard, ch, interaction) client.createChannelSetup(StarBoard, ch, interaction)
}) })

View file

@ -11,7 +11,7 @@ module.exports = async (client, interaction, args) => {
if (choice == "counting") { if (choice == "counting") {
interaction.guild.channels.create({ interaction.guild.channels.create({
name: "counting", name: "counting",
type: "GUILD_TEXT" type: Discord.ChannelType.GuildText
}).then((ch) => { }).then((ch) => {
client.embed({ client.embed({
title: `🔢・Counting`, title: `🔢・Counting`,
@ -25,7 +25,7 @@ module.exports = async (client, interaction, args) => {
if (choice == "gtn") { if (choice == "gtn") {
interaction.guild.channels.create({ interaction.guild.channels.create({
name:"guess-the-number", name:"guess-the-number",
type: "GUILD_TEXT" type: Discord.ChannelType.GuildText
}).then((ch) => { }).then((ch) => {
client.embed({ client.embed({
title: `🔢・Guess the number`, title: `🔢・Guess the number`,
@ -39,7 +39,7 @@ module.exports = async (client, interaction, args) => {
if (choice == "gtw") { if (choice == "gtw") {
interaction.guild.channels.create({ interaction.guild.channels.create({
name: "guess-the-word", name: "guess-the-word",
type: "GUILD_TEXT" type: Discord.ChannelType.GuildText
}).then((ch) => { }).then((ch) => {
var word = "start"; var word = "start";
var shuffled = word.split('').sort(function () { return 0.5 - Math.random() }).join(''); var shuffled = word.split('').sort(function () { return 0.5 - Math.random() }).join('');
@ -62,7 +62,7 @@ module.exports = async (client, interaction, args) => {
if (choice == "wordsnake") { if (choice == "wordsnake") {
interaction.guild.channels.create({ interaction.guild.channels.create({
name: "word-snake", name: "word-snake",
type: "GUILD_TEXT" type: Discord.ChannelType.GuildText
}).then((ch) => { }).then((ch) => {
client.createChannelSetup(WordSnake, ch, interaction) client.createChannelSetup(WordSnake, ch, interaction)
}) })

View file

@ -25,7 +25,7 @@ module.exports = async (client, interaction, args) => {
if (choice == "levelLogs") { if (choice == "levelLogs") {
interaction.guild.channels.create({ interaction.guild.channels.create({
name: "level-logs", name: "level-logs",
type: "GUILD_TEXT" type: Discord.ChannelType.GuildText
}).then((ch) => { }).then((ch) => {
client.createChannelSetup(levelLogs, ch, interaction) client.createChannelSetup(levelLogs, ch, interaction)
}) })
@ -34,7 +34,7 @@ module.exports = async (client, interaction, args) => {
if (choice == "boostLogs") { if (choice == "boostLogs") {
interaction.guild.channels.create({ interaction.guild.channels.create({
name: "boosts", name: "boosts",
type: "GUILD_TEXT" type: Discord.ChannelType.GuildText
}).then((ch) => { }).then((ch) => {
client.createChannelSetup(boostLogs, ch, interaction) client.createChannelSetup(boostLogs, ch, interaction)
}) })

View file

@ -10,7 +10,7 @@ module.exports = async (client, interaction, args) => {
if (choice == "welcomechannel") { if (choice == "welcomechannel") {
interaction.guild.channels.create({ interaction.guild.channels.create({
name: "Welcome", name: "Welcome",
type: "GUILD_TEXT" type: Discord.ChannelType.GuildText
}).then((ch) => { }).then((ch) => {
client.createChannelSetup(welcomeChannel, ch, interaction) client.createChannelSetup(welcomeChannel, ch, interaction)
}) })
@ -28,7 +28,7 @@ module.exports = async (client, interaction, args) => {
if (choice == "leavechannel") { if (choice == "leavechannel") {
interaction.guild.channels.create({ interaction.guild.channels.create({
name: "Bye", name: "Bye",
type: "GUILD_TEXT" type: Discord.ChannelType.GuildText
}).then((ch) => { }).then((ch) => {
client.createChannelSetup(leaveChannel, ch, interaction) client.createChannelSetup(leaveChannel, ch, interaction)
}) })

View file

@ -89,22 +89,22 @@ module.exports = async (client, interaction, args) => {
}, },
{ {
name: "Text Channels: ", name: "Text Channels: ",
value: `${interaction.guild.channels.cache.filter(channel => channel.type === 'GUILD_TEXT').size} channels!`, value: `${interaction.guild.channels.cache.filter(channel => channel.type === Discord.ChannelType.GuildText).size} channels!`,
inline: true inline: true
}, },
{ {
name: "Voice Channels:", name: "Voice Channels:",
value: `${interaction.guild.channels.cache.filter(channel => channel.type === 'GUILD_VOICE').size} channels!`, value: `${interaction.guild.channels.cache.filter(channel => channel.type === Discord.ChannelType.GuildVoice).size} channels!`,
inline: true inline: true
}, },
{ {
name: "Stage Channels:", name: "Stage Channels:",
value: `${interaction.guild.channels.cache.filter(channel => channel.type === 'GUILD_STAGE_VOICE').size} channels!`, value: `${interaction.guild.channels.cache.filter(channel => channel.type === Discord.ChannelType.GuildStageVoice).size} channels!`,
inline: true inline: true
}, },
{ {
name: "News Channels:", name: "News Channels:",
value: `${interaction.guild.channels.cache.filter(channel => channel.type === 'GUILD_NEWS').size} channels!`, value: `${interaction.guild.channels.cache.filter(channel => channel.type === Discord.ChannelType.GuildAnnouncement).size} channels!`,
inline: true inline: true
}, },
{ {

View file

@ -34,8 +34,8 @@ module.exports = async (client, interaction, args) => {
player.connect() player.connect()
setTimeout(() => { setTimeout(() => {
if (channel.type == "GUILD_STAGE_VOICE") { if (channel.type == Discord.ChannelType.GuildStageVoice) {
interaction.guild.me.voice.setSuppressed(false); interaction.guild.members.me.voice.setSuppressed(false);
} }
}, 500) }, 500)
} }
@ -124,27 +124,27 @@ module.exports = async (client, interaction, args) => {
new Discord.ButtonBuilder() new Discord.ButtonBuilder()
.setEmoji("1⃣") .setEmoji("1⃣")
.setCustomId("1") .setCustomId("1")
.setStyle("SECONDARY"), .setStyle(Discord.ButtonStyle.Secondary),
new Discord.ButtonBuilder() new Discord.ButtonBuilder()
.setEmoji("2⃣") .setEmoji("2⃣")
.setCustomId("2") .setCustomId("2")
.setStyle("SECONDARY"), .setStyle(Discord.ButtonStyle.Secondary),
new Discord.ButtonBuilder() new Discord.ButtonBuilder()
.setEmoji("3⃣") .setEmoji("3⃣")
.setCustomId("3") .setCustomId("3")
.setStyle("SECONDARY"), .setStyle(Discord.ButtonStyle.Secondary),
new Discord.ButtonBuilder() new Discord.ButtonBuilder()
.setEmoji("4⃣") .setEmoji("4⃣")
.setCustomId("4") .setCustomId("4")
.setStyle("SECONDARY"), .setStyle(Discord.ButtonStyle.Secondary),
new Discord.ButtonBuilder() new Discord.ButtonBuilder()
.setEmoji("5⃣") .setEmoji("5⃣")
.setCustomId("5") .setCustomId("5")
.setStyle("SECONDARY"), .setStyle(Discord.ButtonStyle.Secondary),
); );
let row2 = new Discord.ActionRowBuilder() let row2 = new Discord.ActionRowBuilder()

View file

@ -27,7 +27,7 @@ module.exports = async (client, interaction, args) => {
await interaction.guild.channels.create({ await interaction.guild.channels.create({
name: channelName, name: channelName,
type: 'GUILD_VOICE', permissionOverwrites: [ type: Discord.ChannelType.GuildVoice, permissionOverwrites: [
{ {
deny: [Discord.PermissionsBitField.Flags.Connect], deny: [Discord.PermissionsBitField.Flags.Connect],
id: interaction.guild.id id: interaction.guild.id

View file

@ -9,7 +9,7 @@ module.exports = async (client, interaction, args) => {
interaction.guild.channels.create({ interaction.guild.channels.create({
name: channelName, name: channelName,
type: 'GUILD_VOICE', permissionOverwrites: [ type: Discord.ChannelType.GuildVoice, permissionOverwrites: [
{ {
deny: [Discord.PermissionsBitField.Flags.Connect], deny: [Discord.PermissionsBitField.Flags.Connect],
id: interaction.guild.id id: interaction.guild.id

View file

@ -11,7 +11,7 @@ module.exports = async (client, interaction, args) => {
await interaction.guild.channels.create({ await interaction.guild.channels.create({
name: channelName, name: channelName,
type: 'GUILD_VOICE', permissionOverwrites: [ type: Discord.ChannelType.GuildVoice, permissionOverwrites: [
{ {
deny: [Discord.PermissionsBitField.Flags.Connect], deny: [Discord.PermissionsBitField.Flags.Connect],
id: interaction.guild.id id: interaction.guild.id

View file

@ -9,7 +9,7 @@ module.exports = async (client, interaction, args) => {
await interaction.guild.channels.create({ await interaction.guild.channels.create({
name: channelName, name: channelName,
type: 'GUILD_VOICE', permissionOverwrites: [ type: Discord.ChannelType.GuildVoice, permissionOverwrites: [
{ {
deny: [Discord.PermissionsBitField.Flags.Connect], deny: [Discord.PermissionsBitField.Flags.Connect],
id: interaction.guild.id id: interaction.guild.id

View file

@ -9,7 +9,7 @@ module.exports = async (client, interaction, args) => {
await interaction.guild.channels.create({ await interaction.guild.channels.create({
name: channelName, name: channelName,
type: 'GUILD_VOICE', permissionOverwrites: [ type: Discord.ChannelType.GuildVoice, permissionOverwrites: [
{ {
deny: [Discord.PermissionsBitField.Flags.Connect], deny: [Discord.PermissionsBitField.Flags.Connect],
id: interaction.guild.id id: interaction.guild.id

View file

@ -9,7 +9,7 @@ module.exports = async (client, interaction, args) => {
await interaction.guild.channels.create({ await interaction.guild.channels.create({
name: channelName, name: channelName,
type: 'GUILD_VOICE', permissionOverwrites: [ type: Discord.ChannelType.GuildVoice, permissionOverwrites: [
{ {
deny: [Discord.PermissionsBitField.Flags.Connect], deny: [Discord.PermissionsBitField.Flags.Connect],
id: interaction.guild.id id: interaction.guild.id

View file

@ -5,11 +5,11 @@ const Schema = require("../../database/models/stats");
module.exports = async (client, interaction, args) => { module.exports = async (client, interaction, args) => {
var channelName = await client.getTemplate(interaction.guild); var channelName = await client.getTemplate(interaction.guild);
channelName = channelName.replace(`{emoji}`, "📢") channelName = channelName.replace(`{emoji}`, "📢")
channelName = channelName.replace(`{name}`, `News Channels: ${interaction.guild.channels.cache.filter(channel => channel.type === 'GUILD_NEWS').size || 0}`) channelName = channelName.replace(`{name}`, `News Channels: ${interaction.guild.channels.cache.filter(channel => channel.type === Discord.ChannelType.GuildAnnouncement).size || 0}`)
await interaction.guild.channels.create({ await interaction.guild.channels.create({
name: channelName, name: channelName,
type: 'GUILD_VOICE', permissionOverwrites: [ type: Discord.ChannelType.GuildVoice, permissionOverwrites: [
{ {
deny: [Discord.PermissionsBitField.Flags.Connect], deny: [Discord.PermissionsBitField.Flags.Connect],
id: interaction.guild.id id: interaction.guild.id

View file

@ -9,7 +9,7 @@ module.exports = async (client, interaction, args) => {
await interaction.guild.channels.create({ await interaction.guild.channels.create({
name: channelName, name: channelName,
type: 'GUILD_VOICE', permissionOverwrites: [ type: Discord.ChannelType.GuildVoice, permissionOverwrites: [
{ {
deny: [Discord.PermissionsBitField.Flags.Connect], deny: [Discord.PermissionsBitField.Flags.Connect],
id: interaction.guild.id id: interaction.guild.id

View file

@ -5,11 +5,11 @@ const Schema = require("../../database/models/stats");
module.exports = async (client, interaction, args) => { module.exports = async (client, interaction, args) => {
var channelName = await client.getTemplate(interaction.guild); var channelName = await client.getTemplate(interaction.guild);
channelName = channelName.replace(`{emoji}`, "🎤") channelName = channelName.replace(`{emoji}`, "🎤")
channelName = channelName.replace(`{name}`, `Stage Channels: ${interaction.guild.channels.cache.filter(channel => channel.type === 'GUILD_STAGE_VOICE').size || 0}`) channelName = channelName.replace(`{name}`, `Stage Channels: ${interaction.guild.channels.cache.filter(channel => channel.type === Discord.ChannelType.GuildStageVoice).size || 0}`)
await interaction.guild.channels.create({ await interaction.guild.channels.create({
name: channelName, name: channelName,
type: 'GUILD_VOICE', permissionOverwrites: [ type: Discord.ChannelType.GuildVoice, permissionOverwrites: [
{ {
deny: [Discord.PermissionsBitField.Flags.Connect], deny: [Discord.PermissionsBitField.Flags.Connect],
id: interaction.guild.id id: interaction.guild.id

View file

@ -27,7 +27,7 @@ module.exports = async (client, interaction, args) => {
await interaction.guild.channels.create({ await interaction.guild.channels.create({
name: channelName, name: channelName,
type: 'GUILD_VOICE', permissionOverwrites: [ type: Discord.ChannelType.GuildVoice, permissionOverwrites: [
{ {
deny: [Discord.PermissionsBitField.Flags.Connect], deny: [Discord.PermissionsBitField.Flags.Connect],
id: interaction.guild.id id: interaction.guild.id

View file

@ -5,11 +5,11 @@ const Schema = require("../../database/models/stats");
module.exports = async (client, interaction, args) => { module.exports = async (client, interaction, args) => {
var channelName = await client.getTemplate(interaction.guild); var channelName = await client.getTemplate(interaction.guild);
channelName = channelName.replace(`{emoji}`, "💬") channelName = channelName.replace(`{emoji}`, "💬")
channelName = channelName.replace(`{name}`, `Text Channels: ${interaction.guild.channels.cache.filter(channel => channel.type === 'GUILD_TEXT').size || 0}`) channelName = channelName.replace(`{name}`, `Text Channels: ${interaction.guild.channels.cache.filter(channel => channel.type === Discord.ChannelType.GuildText).size || 0}`)
await interaction.guild.channels.create({ await interaction.guild.channels.create({
name: channelName, name: channelName,
type: 'GUILD_VOICE', permissionOverwrites: [ type: Discord.ChannelType.GuildVoice, permissionOverwrites: [
{ {
deny: [Discord.PermissionsBitField.Flags.Connect], deny: [Discord.PermissionsBitField.Flags.Connect],
id: interaction.guild.id id: interaction.guild.id

View file

@ -16,7 +16,7 @@ module.exports = async (client, interaction, args) => {
await interaction.guild.channels.create({ await interaction.guild.channels.create({
name: channelName, name: channelName,
type: 'GUILD_VOICE', permissionOverwrites: [ type: Discord.ChannelType.GuildVoice, permissionOverwrites: [
{ {
deny: [Discord.PermissionsBitField.Flags.Connect], deny: [Discord.PermissionsBitField.Flags.Connect],
id: interaction.guild.id id: interaction.guild.id

View file

@ -20,7 +20,7 @@ module.exports = async (client, interaction, args) => {
await interaction.guild.channels.create({ await interaction.guild.channels.create({
name: channelName, name: channelName,
type: 'GUILD_VOICE', permissionOverwrites: [ type: Discord.ChannelType.GuildVoice, permissionOverwrites: [
{ {
deny: [Discord.PermissionsBitField.Flags.Connect], deny: [Discord.PermissionsBitField.Flags.Connect],
id: interaction.guild.id id: interaction.guild.id

View file

@ -5,11 +5,11 @@ const Schema = require("../../database/models/stats");
module.exports = async (client, interaction, args) => { module.exports = async (client, interaction, args) => {
var channelName = await client.getTemplate(interaction.guild); var channelName = await client.getTemplate(interaction.guild);
channelName = channelName.replace(`{emoji}`, "🔊") channelName = channelName.replace(`{emoji}`, "🔊")
channelName = channelName.replace(`{name}`, `Voice Channels: ${interaction.guild.channels.cache.filter(channel => channel.type === 'GUILD_VOICE').size || 0}`) channelName = channelName.replace(`{name}`, `Voice Channels: ${interaction.guild.channels.cache.filter(channel => channel.type === Discord.ChannelType.GuildVoice).size || 0}`)
await interaction.guild.channels.create({ await interaction.guild.channels.create({
name: channelName, name: channelName,
type: 'GUILD_VOICE', permissionOverwrites: [ type: Discord.ChannelType.GuildVoice, permissionOverwrites: [
{ {
deny: [Discord.PermissionsBitField.Flags.Connect], deny: [Discord.PermissionsBitField.Flags.Connect],
id: interaction.guild.id id: interaction.guild.id

View file

@ -8,7 +8,7 @@ module.exports = async (client, interaction, args) => {
interaction.guild.channels.create({ interaction.guild.channels.create({
name: ChannelName, name: ChannelName,
type: "GUILD_VOICE", type: Discord.ChannelType.GuildVoice,
parent: category.id, parent: category.id,
permissionOverwrites: [ permissionOverwrites: [
{ {

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/y2mate-mp3cut_sRzY6rh.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/y2mate-mp3cut_sRzY6rh.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/fortnite-default-dance-bass-boosted.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/fortnite-default-dance-bass-boosted.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/despacito.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/despacito.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/discord-call-sound.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/discord-call-sound.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/discord-sounds.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/discord-sounds.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/discord-leave_soGsPwn.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/discord-leave_soGsPwn.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/discord-notification.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/discord-notification.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/musique-dascenseur-mp3cut.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/musique-dascenseur-mp3cut.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/fbi-open-up-sfx.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/fbi-open-up-sfx.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/jeff.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/jeff.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/lambo.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/lambo.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/dank-meme-compilation-volume-17_cutted.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/dank-meme-compilation-volume-17_cutted.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/moaning.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/moaning.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/nani.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/nani.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/nyan-cat.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/nyan-cat.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/ohh.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/ohh.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/reee.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/reee.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/epic.swf_1.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/epic.swf_1.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/rimshot.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/rimshot.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/roblox-death-sound-effect.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/roblox-death-sound-effect.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/running.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/running.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/shotdown.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/shotdown.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/a-few-moments-later-hd.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/a-few-moments-later-hd.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/startup.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/startup.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/thomas.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/thomas.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/untitled_1071.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/untitled_1071.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/ladies-and-gentlemen-we-got-him-song.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/ladies-and-gentlemen-we-got-him-song.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/erro.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/erro.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/preview_4.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/preview_4.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/windows-xp-startup.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/windows-xp-startup.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/anime-wow-sound-effect.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/anime-wow-sound-effect.mp3");

View file

@ -3,7 +3,7 @@ module.exports = async (client, interaction, args) => {
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction); if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction); if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/yeet.mp3"); client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/yeet.mp3");

View file

@ -43,7 +43,7 @@ module.exports = async (client, guild) => {
let defaultChannel = ""; let defaultChannel = "";
guild.channels.cache.forEach((channel) => { guild.channels.cache.forEach((channel) => {
if (channel.type == "GUILD_TEXT" && defaultChannel == "") { if (channel.type == Discord.ChannelType.GuildText && defaultChannel == "") {
if (channel.permissionsFor(guild.me).has("SEND_MESSAGES")) { if (channel.permissionsFor(guild.me).has("SEND_MESSAGES")) {
defaultChannel = channel; defaultChannel = channel;
} }

View file

@ -6,22 +6,22 @@ module.exports = (client, player, track) => {
new Discord.ButtonBuilder() new Discord.ButtonBuilder()
.setEmoji(client.emotes.music.previous) .setEmoji(client.emotes.music.previous)
.setCustomId("Bot-musicprev") .setCustomId("Bot-musicprev")
.setStyle("SECONDARY"), .setStyle(Discord.ButtonStyle.Secondary),
new Discord.ButtonBuilder() new Discord.ButtonBuilder()
.setEmoji(client.emotes.music.pause) .setEmoji(client.emotes.music.pause)
.setCustomId("Bot-musicpause") .setCustomId("Bot-musicpause")
.setStyle("SECONDARY"), .setStyle(Discord.ButtonStyle.Secondary),
new Discord.ButtonBuilder() new Discord.ButtonBuilder()
.setEmoji(client.emotes.music.stop) .setEmoji(client.emotes.music.stop)
.setCustomId("Bot-musicstop") .setCustomId("Bot-musicstop")
.setStyle("SECONDARY"), .setStyle(Discord.ButtonStyle.Secondary),
new Discord.ButtonBuilder() new Discord.ButtonBuilder()
.setEmoji(client.emotes.music.next) .setEmoji(client.emotes.music.next)
.setCustomId("Bot-musicnext") .setCustomId("Bot-musicnext")
.setStyle("SECONDARY"), .setStyle(Discord.ButtonStyle.Secondary),
); );
const channel = client.channels.cache.get(player.textChannel); const channel = client.channels.cache.get(player.textChannel);

View file

@ -3,11 +3,11 @@ const discord = require('discord.js');
const Schema = require("../../database/models/stats"); const Schema = require("../../database/models/stats");
module.exports = async (client, channel, guild) => { module.exports = async (client, channel, guild) => {
if (channel.type == "GUILD_NEWS") { if (channel.type == Discord.ChannelType.GuildAnnouncement) {
try { try {
var channelName = await client.getTemplate(guild); var channelName = await client.getTemplate(guild);
channelName = channelName.replace(`{emoji}`, "📢") channelName = channelName.replace(`{emoji}`, "📢")
channelName = channelName.replace(`{name}`, `News Channels: ${guild.channels.cache.filter(channel => channel.type === 'GUILD_NEWS').size || 0}`) channelName = channelName.replace(`{name}`, `News Channels: ${guild.channels.cache.filter(channel => channel.type === Discord.ChannelType.GuildAnnouncement).size || 0}`)
const data = await Schema.findOne({ Guild: guild.id }); const data = await Schema.findOne({ Guild: guild.id });
const changeChannel = guild.channels.cache.get(data.NewsChannels) const changeChannel = guild.channels.cache.get(data.NewsChannels)

View file

@ -3,11 +3,11 @@ const discord = require('discord.js');
const Schema = require("../../database/models/stats"); const Schema = require("../../database/models/stats");
module.exports = async (client, channel, guild) => { module.exports = async (client, channel, guild) => {
if (channel.type == "GUILD_STAGE_VOICE") { if (channel.type == Discord.ChannelType.GuildStageVoice) {
try { try {
var channelName = await client.getTemplate(guild); var channelName = await client.getTemplate(guild);
channelName = channelName.replace(`{emoji}`, "🎤") channelName = channelName.replace(`{emoji}`, "🎤")
channelName = channelName.replace(`{name}`, `Stage Channels: ${guild.channels.cache.filter(channel => channel.type === 'GUILD_STAGE_VOICE').size || 0}`) channelName = channelName.replace(`{name}`, `Stage Channels: ${guild.channels.cache.filter(channel => channel.type === Discord.ChannelType.GuildStageVoice).size || 0}`)
const data = await Schema.findOne({ Guild: guild.id }); const data = await Schema.findOne({ Guild: guild.id });
const changeChannel = guild.channels.cache.get(data.StageChannels) const changeChannel = guild.channels.cache.get(data.StageChannels)

View file

@ -3,11 +3,11 @@ const discord = require('discord.js');
const Schema = require("../../database/models/stats"); const Schema = require("../../database/models/stats");
module.exports = async (client, channel, guild) => { module.exports = async (client, channel, guild) => {
if (channel.type == "GUILD_TEXT") { if (channel.type == Discord.ChannelType.GuildText) {
try { try {
var channelName = await client.getTemplate(guild); var channelName = await client.getTemplate(guild);
channelName = channelName.replace(`{emoji}`, "💬") channelName = channelName.replace(`{emoji}`, "💬")
channelName = channelName.replace(`{name}`, `Text Channels: ${guild.channels.cache.filter(channel => channel.type === 'GUILD_TEXT').size || 0}`) channelName = channelName.replace(`{name}`, `Text Channels: ${guild.channels.cache.filter(channel => channel.type === Discord.ChannelType.GuildText).size || 0}`)
const data = await Schema.findOne({ Guild: guild.id }); const data = await Schema.findOne({ Guild: guild.id });
const changeChannel = guild.channels.cache.get(data.TextChannels) const changeChannel = guild.channels.cache.get(data.TextChannels)

View file

@ -3,11 +3,11 @@ const discord = require('discord.js');
const Schema = require("../../database/models/stats"); const Schema = require("../../database/models/stats");
module.exports = async (client, channel, guild) => { module.exports = async (client, channel, guild) => {
if (channel.type == "GUILD_VOICE") { if (channel.type == Discord.ChannelType.GuildVoice) {
try { try {
var channelName = await client.getTemplate(guild); var channelName = await client.getTemplate(guild);
channelName = channelName.replace(`{emoji}`, "🔊") channelName = channelName.replace(`{emoji}`, "🔊")
channelName = channelName.replace(`{name}`, `Voice Channels: ${guild.channels.cache.filter(channel => channel.type === 'GUILD_VOICE').size || 0}`) channelName = channelName.replace(`{name}`, `Voice Channels: ${guild.channels.cache.filter(channel => channel.type === Discord.ChannelType.GuildVoice).size || 0}`)
const data = await Schema.findOne({ Guild: guild.id }); const data = await Schema.findOne({ Guild: guild.id });
const changeChannel = guild.channels.cache.get(data.VoiceChannels) const changeChannel = guild.channels.cache.get(data.VoiceChannels)

View file

@ -91,7 +91,7 @@ module.exports = (client, oldState, newState) => {
const channel = await newState.guild.channels.create({ const channel = await newState.guild.channels.create({
name: "⌛", name: "⌛",
type: "GUILD_VOICE", type: Discord.ChannelType.GuildVoice,
parent: data.Category, parent: data.Category,
}); });

View file

@ -19,22 +19,22 @@ module.exports = (client) => {
new Discord.ButtonBuilder() new Discord.ButtonBuilder()
.setEmoji(client.emotes.music.previous) .setEmoji(client.emotes.music.previous)
.setCustomId("Bot-musicprev") .setCustomId("Bot-musicprev")
.setStyle("SECONDARY"), .setStyle(Discord.ButtonStyle.Secondary),
new Discord.ButtonBuilder() new Discord.ButtonBuilder()
.setEmoji(client.emotes.music.play) .setEmoji(client.emotes.music.play)
.setCustomId("Bot-musicstart") .setCustomId("Bot-musicstart")
.setStyle("SECONDARY"), .setStyle(Discord.ButtonStyle.Secondary),
new Discord.ButtonBuilder() new Discord.ButtonBuilder()
.setEmoji(client.emotes.music.stop) .setEmoji(client.emotes.music.stop)
.setCustomId("Bot-musicstop") .setCustomId("Bot-musicstop")
.setStyle("SECONDARY"), .setStyle(Discord.ButtonStyle.Secondary),
new Discord.ButtonBuilder() new Discord.ButtonBuilder()
.setEmoji(client.emotes.music.next) .setEmoji(client.emotes.music.next)
.setCustomId("Bot-musicnext") .setCustomId("Bot-musicnext")
.setStyle("SECONDARY"), .setStyle(Discord.ButtonStyle.Secondary),
); );
client.embed({ client.embed({
@ -64,22 +64,22 @@ module.exports = (client) => {
new Discord.ButtonBuilder() new Discord.ButtonBuilder()
.setEmoji(client.emotes.music.previous) .setEmoji(client.emotes.music.previous)
.setCustomId("Bot-musicprev") .setCustomId("Bot-musicprev")
.setStyle("SECONDARY"), .setStyle(Discord.ButtonStyle.Secondary),
new Discord.ButtonBuilder() new Discord.ButtonBuilder()
.setEmoji(client.emotes.music.pause) .setEmoji(client.emotes.music.pause)
.setCustomId("Bot-musicpause") .setCustomId("Bot-musicpause")
.setStyle("SECONDARY"), .setStyle(Discord.ButtonStyle.Secondary),
new Discord.ButtonBuilder() new Discord.ButtonBuilder()
.setEmoji(client.emotes.music.stop) .setEmoji(client.emotes.music.stop)
.setCustomId("Bot-musicstop") .setCustomId("Bot-musicstop")
.setStyle("SECONDARY"), .setStyle(Discord.ButtonStyle.Secondary),
new Discord.ButtonBuilder() new Discord.ButtonBuilder()
.setEmoji(client.emotes.music.next) .setEmoji(client.emotes.music.next)
.setCustomId("Bot-musicnext") .setCustomId("Bot-musicnext")
.setStyle("SECONDARY"), .setStyle(Discord.ButtonStyle.Secondary),
); );
client.embed({ client.embed({

View file

@ -29,7 +29,7 @@ module.exports = (client) => {
}); });
setTimeout(() => { setTimeout(() => {
if (channel.type == "GUILD_STAGE_VOICE") { if (channel.type == Discord.ChannelType.GuildStageVoice) {
channel.guild.me.voice.setSuppressed(false).catch(() => { }); channel.guild.me.voice.setSuppressed(false).catch(() => { });
} }
}, 500) }, 500)

View file

@ -71,7 +71,7 @@ module.exports = async (client) => {
}) })
client.on('channelUpdate', (oldChannel, newChannel) => { client.on('channelUpdate', (oldChannel, newChannel) => {
if (oldChannel.type === 'GUILD_TEXT' && oldChannel.topic !== newChannel.topic) { if (oldChannel.type === Discord.ChannelType.GuildText && oldChannel.topic !== newChannel.topic) {
client.emit('channelTopicUpdate', newChannel, oldChannel.topic, newChannel.topic); client.emit('channelTopicUpdate', newChannel, oldChannel.topic, newChannel.topic);
} }

View file

@ -38,7 +38,7 @@ module.exports = async (client) => {
perms: perms perms: perms
}, interaction) { }, interaction) {
for (let i = 0; i < flags.length; i++) { for (let i = 0; i < flags.length; i++) {
if (!interaction.guild.me.permissions.has(flags[i])) { if (!interaction.guild.members.me.permissions.has(flags[i])) {
client.errNoPerms({ client.errNoPerms({
perms: perms[i], perms: perms[i],
type: 'editreply' type: 'editreply'

View file

@ -21,8 +21,8 @@ module.exports = (client) => {
connection.subscribe(player); connection.subscribe(player);
setTimeout(() => { setTimeout(() => {
if (channel.type == "GUILD_STAGE_VOICE") { if (channel.type == Discord.ChannelType.GuildStageVoice) {
interaction.guild.me.voice.setSuppressed(false); interaction.guild.members.me.voice.setSuppressed(false);
} }
}, 500) }, 500)