yeaz:ú
yeaz:ú
SIASapphire - Imagine a framework
Created by yeaz:ú on 6/12/2023 in #discordjs-support
Nickname
No description
2 replies
SIASapphire - Imagine a framework
Created by yeaz:ú on 5/25/2023 in #discordjs-support
edit embed
hello, this is my command for edit embed, but i must somehow implement edit embed by message id, how i can do it? what i must add?
const { Client, Intents, MessageAttachment, MessageEmbed } = require('discord.js');
module.exports = {
name: "edit-embed",
usage: '/edit-embed <messageid> <description> <title>',
options: [
{
type: 3,
name: 'description',
description: "",
required: false,
},
{
type: 3,
name: 'title',
description: "",
required: false,
},
{
type: 3,
name: 'footer',
description: "",
required: false,
},
],
category: "Moderation",
description: "EMBED",
userPerms: ["ADMINISTRATOR"],
ownerOnly: false,
run: async (client, interaction) => {
const description = interaction.options.getString('description');
const title = interaction.options.getString('title');
const footer = interaction.options.getString('footer');


const embed = new client.discord.MessageEmbed()
.setTitle(!title ? '' : title)
.setDescription(!description ? '' : description)
.setColor(client.config.embedColor)
.setFooter(!footer ? '' : footer)


await interaction.reply({ content: 'Done!', ephemeral: true });
return message.edit({ embeds: [embed], files: [icon] })

}
}
const { Client, Intents, MessageAttachment, MessageEmbed } = require('discord.js');
module.exports = {
name: "edit-embed",
usage: '/edit-embed <messageid> <description> <title>',
options: [
{
type: 3,
name: 'description',
description: "",
required: false,
},
{
type: 3,
name: 'title',
description: "",
required: false,
},
{
type: 3,
name: 'footer',
description: "",
required: false,
},
],
category: "Moderation",
description: "EMBED",
userPerms: ["ADMINISTRATOR"],
ownerOnly: false,
run: async (client, interaction) => {
const description = interaction.options.getString('description');
const title = interaction.options.getString('title');
const footer = interaction.options.getString('footer');


const embed = new client.discord.MessageEmbed()
.setTitle(!title ? '' : title)
.setDescription(!description ? '' : description)
.setColor(client.config.embedColor)
.setFooter(!footer ? '' : footer)


await interaction.reply({ content: 'Done!', ephemeral: true });
return message.edit({ embeds: [embed], files: [icon] })

}
}
2 replies
SIASapphire - Imagine a framework
Created by yeaz:ú on 4/23/2023 in #discordjs-support
Embed Edit command.
Hello, there! I have one problem, i want /embed-edit "messageid" "atributes" command, but i dont know, how to make it. Please, any solution, how to make simply and fast? :/ Thanks
2 replies