fix deprecation issues
This commit is contained in:
31 files changed
+586
-1933
No files matched your search
+3
-3
@@ -1,4 +1,4 @@
|
||||
const { MessageEmbed } = require('discord.js');
|
||||
const { EmbedBuilder } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
name: "account",
|
||||
@@ -19,14 +19,14 @@ module.exports = {
|
||||
*/
|
||||
run: async (client, interaction, args, { GuildDB }) => {
|
||||
if (GuildDB.customChannelStatus==true&&!GuildDB.allowedChannels.includes(interaction.channel_id)) {
|
||||
return interaction.send(`You are not allowed to use the bot in this channel.`);
|
||||
return interaction.send({ content: `You are not allowed to use the bot in this channel.` });
|
||||
}
|
||||
let user = await client.dbo.collection("users").findOne({"user.discord.id":interaction.member.user.id}).then(user => user);
|
||||
if (user==null) return interaction.send(`You are not logged in.`);
|
||||
client.users.fetch(interaction.member.user.id)
|
||||
.then(duser => duser.send(`<@${interaction.member.user.id}> Logged in as **${user.user.username}** | **${user.user.email}**`).catch(err => {client.log(err)}))
|
||||
.catch(err => {client.log(err)});
|
||||
return interaction.send('Your account details have been sent in your dm.');
|
||||
return interaction.send({ content: 'Your account details have been sent in your dm.' });
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user