upgrade to discord.js v14

This commit is contained in:
SowinskiBraeden committed 2022-08-24 23:23:44 -07:00
1 parent f32c04b5bc
commit 0cdd107b92
24 files changed
+1598 -1560

No files matched your search

+13 -13
View File
@@ -1,4 +1,4 @@
const { MessageEmbed } = require('discord.js');
const { EmbedBuilder } = require('discord.js');
module.exports = {
name: "tweet",
@@ -9,16 +9,16 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [],
},
options: [
{
name: "message",
description: "Your message to tweet",
value: "message",
type: 3,
required: true,
},
],
SlashCommand: {
options: [
{
name: "message",
description: "Your message to tweet",
value: "message",
type: 3,
required: true,
},
],
/**
*
* @param {require("../structures/QuarksBot")} client
@@ -34,7 +34,7 @@ module.exports = {
let userID = interaction.member.user.id;
let avatar = interaction.member.user.avatar;
const tweetEmbed = new MessageEmbed()
const tweetEmbed = new EmbedBuilder()
.setColor('#0099ff')
.setTitle('New Twitter Notifciation')
.setThumbnail('https://static.vecteezy.com/system/resources/previews/002/534/045/original/social-media-twitter-logo-blue-isolated-free-vector.jpg')
@@ -45,9 +45,9 @@ module.exports = {
if (client.exists(GuildDB.tweetChannel)) {
const channel = interaction.guild.channels.cache.find(channel => channel.id === GuildDB.tweetChannel);
if (!channel) {
const embed = new MessageEmbed()
const embed = new EmbedBuilder()
.setDescriptions(`**Internal Error:** ${err}\nThe channel may have been deleted\nContact the Developers\nhttps://discord.gg/YCXhvy9uZw`)
.setColor("RED")
.setColor(client.config.Colors.Red)
return interaction.send({ embeds: [embed] });
}