Added deferreply to lessen the bugs.
This commit is contained in:
@@ -20,6 +20,8 @@ module.exports = {
|
||||
|
||||
async execute(interaction) {
|
||||
|
||||
await interaction.deferReply();
|
||||
|
||||
const ign = interaction.options.getString('ign');
|
||||
const mojang = "https://api.mojang.com/users/profiles/minecraft/"
|
||||
const slothPixel = "https://api.slothpixel.me/api/players/";
|
||||
|
||||
@@ -11,16 +11,19 @@ module.exports = {
|
||||
.setDescription('Send a message to a channel.')
|
||||
.addStringOption(option =>
|
||||
option
|
||||
.setName('message')
|
||||
.setDescription('The message to send.'))
|
||||
.setName('message')
|
||||
.setDescription('The message to send.'))
|
||||
.addChannelOption(option =>
|
||||
option
|
||||
.setName('channel')
|
||||
.setDescription('The channel to send the message to.'))
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||
.setDMPermission(false),
|
||||
|
||||
|
||||
async execute(interaction) {
|
||||
|
||||
await interaction.deferReply();
|
||||
|
||||
const message = interaction.options.getString('message');
|
||||
const channel = interaction.options.getChannel('channel');
|
||||
|
||||
|
||||
@@ -21,6 +21,8 @@ module.exports = {
|
||||
.setDMPermission(false),
|
||||
|
||||
async execute(interaction) {
|
||||
|
||||
await interaction.deferReply();
|
||||
|
||||
const verifyData = await verify.findOne({ userID: user.id })
|
||||
const memberRoles = interaction.member.roles.cache;
|
||||
|
||||
@@ -23,6 +23,8 @@ module.exports = {
|
||||
|
||||
async execute(interaction) {
|
||||
|
||||
await interaction.deferReply();
|
||||
|
||||
const user = interaction.user;
|
||||
const fullUsername = user.username + "#" + user.discriminator
|
||||
const ign = interaction.options.getString('ign');
|
||||
|
||||
Reference in New Issue
Block a user