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) => {
interaction.guild.channels.create({
name: " Create Voice",
type: "GUILD_VOICE",
type: Discord.ChannelType.GuildVoice,
parent: cat.id,
permissionOverwrites: [
{

View file

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

View file

@ -11,7 +11,7 @@ module.exports = async (client, interaction, args) => {
if (choice == "counting") {
interaction.guild.channels.create({
name: "counting",
type: "GUILD_TEXT"
type: Discord.ChannelType.GuildText
}).then((ch) => {
client.embed({
title: `🔢・Counting`,
@ -25,7 +25,7 @@ module.exports = async (client, interaction, args) => {
if (choice == "gtn") {
interaction.guild.channels.create({
name:"guess-the-number",
type: "GUILD_TEXT"
type: Discord.ChannelType.GuildText
}).then((ch) => {
client.embed({
title: `🔢・Guess the number`,
@ -39,7 +39,7 @@ module.exports = async (client, interaction, args) => {
if (choice == "gtw") {
interaction.guild.channels.create({
name: "guess-the-word",
type: "GUILD_TEXT"
type: Discord.ChannelType.GuildText
}).then((ch) => {
var word = "start";
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") {
interaction.guild.channels.create({
name: "word-snake",
type: "GUILD_TEXT"
type: Discord.ChannelType.GuildText
}).then((ch) => {
client.createChannelSetup(WordSnake, ch, interaction)
})

View file

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

View file

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

View file

@ -89,22 +89,22 @@ module.exports = async (client, interaction, args) => {
},
{
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
},
{
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
},
{
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
},
{
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
},
{

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -5,11 +5,11 @@ const Schema = require("../../database/models/stats");
module.exports = async (client, interaction, args) => {
var channelName = await client.getTemplate(interaction.guild);
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({
name: channelName,
type: 'GUILD_VOICE', permissionOverwrites: [
type: Discord.ChannelType.GuildVoice, permissionOverwrites: [
{
deny: [Discord.PermissionsBitField.Flags.Connect],
id: interaction.guild.id

View file

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

View file

@ -5,11 +5,11 @@ const Schema = require("../../database/models/stats");
module.exports = async (client, interaction, args) => {
var channelName = await client.getTemplate(interaction.guild);
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({
name: channelName,
type: 'GUILD_VOICE', permissionOverwrites: [
type: Discord.ChannelType.GuildVoice, permissionOverwrites: [
{
deny: [Discord.PermissionsBitField.Flags.Connect],
id: interaction.guild.id

View file

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

View file

@ -5,11 +5,11 @@ const Schema = require("../../database/models/stats");
module.exports = async (client, interaction, args) => {
var channelName = await client.getTemplate(interaction.guild);
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({
name: channelName,
type: 'GUILD_VOICE', permissionOverwrites: [
type: Discord.ChannelType.GuildVoice, permissionOverwrites: [
{
deny: [Discord.PermissionsBitField.Flags.Connect],
id: interaction.guild.id

View file

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

View file

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

View file

@ -5,11 +5,11 @@ const Schema = require("../../database/models/stats");
module.exports = async (client, interaction, args) => {
var channelName = await client.getTemplate(interaction.guild);
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({
name: channelName,
type: 'GUILD_VOICE', permissionOverwrites: [
type: Discord.ChannelType.GuildVoice, permissionOverwrites: [
{
deny: [Discord.PermissionsBitField.Flags.Connect],
id: interaction.guild.id

View file

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

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.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");

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.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");

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.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");

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.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");

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.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");

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.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");

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.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");

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.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");

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.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");

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.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");

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.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");

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.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");

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.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");

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.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");

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.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");

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.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");

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.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");

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.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");

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.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");

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.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");

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.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");

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.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");

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.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");

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.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");

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.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");

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.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");

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.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");

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.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");

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.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");

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.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");

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.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");

View file

@ -43,7 +43,7 @@ module.exports = async (client, guild) => {
let defaultChannel = "";
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")) {
defaultChannel = channel;
}

View file

@ -6,22 +6,22 @@ module.exports = (client, player, track) => {
new Discord.ButtonBuilder()
.setEmoji(client.emotes.music.previous)
.setCustomId("Bot-musicprev")
.setStyle("SECONDARY"),
.setStyle(Discord.ButtonStyle.Secondary),
new Discord.ButtonBuilder()
.setEmoji(client.emotes.music.pause)
.setCustomId("Bot-musicpause")
.setStyle("SECONDARY"),
.setStyle(Discord.ButtonStyle.Secondary),
new Discord.ButtonBuilder()
.setEmoji(client.emotes.music.stop)
.setCustomId("Bot-musicstop")
.setStyle("SECONDARY"),
.setStyle(Discord.ButtonStyle.Secondary),
new Discord.ButtonBuilder()
.setEmoji(client.emotes.music.next)
.setCustomId("Bot-musicnext")
.setStyle("SECONDARY"),
.setStyle(Discord.ButtonStyle.Secondary),
);
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");
module.exports = async (client, channel, guild) => {
if (channel.type == "GUILD_NEWS") {
if (channel.type == Discord.ChannelType.GuildAnnouncement) {
try {
var channelName = await client.getTemplate(guild);
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 changeChannel = guild.channels.cache.get(data.NewsChannels)

View file

@ -3,11 +3,11 @@ const discord = require('discord.js');
const Schema = require("../../database/models/stats");
module.exports = async (client, channel, guild) => {
if (channel.type == "GUILD_STAGE_VOICE") {
if (channel.type == Discord.ChannelType.GuildStageVoice) {
try {
var channelName = await client.getTemplate(guild);
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 changeChannel = guild.channels.cache.get(data.StageChannels)

View file

@ -3,11 +3,11 @@ const discord = require('discord.js');
const Schema = require("../../database/models/stats");
module.exports = async (client, channel, guild) => {
if (channel.type == "GUILD_TEXT") {
if (channel.type == Discord.ChannelType.GuildText) {
try {
var channelName = await client.getTemplate(guild);
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 changeChannel = guild.channels.cache.get(data.TextChannels)

View file

@ -3,11 +3,11 @@ const discord = require('discord.js');
const Schema = require("../../database/models/stats");
module.exports = async (client, channel, guild) => {
if (channel.type == "GUILD_VOICE") {
if (channel.type == Discord.ChannelType.GuildVoice) {
try {
var channelName = await client.getTemplate(guild);
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 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({
name: "⌛",
type: "GUILD_VOICE",
type: Discord.ChannelType.GuildVoice,
parent: data.Category,
});

View file

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

View file

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

View file

@ -71,7 +71,7 @@ module.exports = async (client) => {
})
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);
}

View file

@ -38,7 +38,7 @@ module.exports = async (client) => {
perms: perms
}, interaction) {
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({
perms: perms[i],
type: 'editreply'

View file

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