mirror of
https://github.com/System-End/Discord-Bot.git
synced 2026-04-19 15:18:21 +00:00
Fixed some errors
This commit is contained in:
parent
ee6d5cd349
commit
62901cfe86
4 changed files with 6 additions and 5 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -103,4 +103,6 @@ dist
|
|||
# TernJS port file
|
||||
.tern-port
|
||||
|
||||
src/config/*
|
||||
src/config/*
|
||||
|
||||
package-lock.json
|
||||
|
|
@ -5,7 +5,7 @@ module.exports = async (client, interaction, args) => {
|
|||
|
||||
client.succNormal({
|
||||
text: `${text.split("").reverse().join("")}`,
|
||||
type: 'reply'
|
||||
type: 'editreply'
|
||||
}, interaction)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ module.exports = (client, err, command, interaction) => {
|
|||
}
|
||||
],
|
||||
components: [row],
|
||||
type: 'reply'
|
||||
type: 'editreply'
|
||||
}, interaction)
|
||||
})
|
||||
};
|
||||
|
|
@ -40,10 +40,9 @@ module.exports = {
|
|||
flags: [Discord.PermissionsBitField.Flags.Connect, Discord.PermissionsBitField.Flags.Speak],
|
||||
perms: [Discord.PermissionsBitField.Flags.Connect, Discord.PermissionsBitField.Flags.Speak]
|
||||
}, interaction)
|
||||
|
||||
if (!interaction.member.voice.channel) return client.errNormal({
|
||||
error: `You're not in a voice channel!`,
|
||||
type: 'reply'
|
||||
type: 'editreply'
|
||||
}, interaction);
|
||||
|
||||
client.loadSubcommands(client, interaction, args);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue