! Bemep
! Bemep
DIAdiscord.js - Imagine an app
Created by ! Bemep on 2/18/2024 in #djs-questions
Put an asterisk symbol
I want to make a note in the text of my bot ("* text"), but when I put an asterisk symbol, an asterisk is created, and if I use a slash it does not help.
9 replies
DIAdiscord.js - Imagine an app
Created by ! Bemep on 2/3/2023 in #djs-questions
How can i attach an mp3 file to a message?
How can i attach an mp3 file to a message?
3 replies
DIAdiscord.js - Imagine an app
Created by ! Bemep on 1/21/2023 in #djs-questions
I am trying to send a local image
What is wrong? const attachment = new AttachmentBuilder("D:\Bot\Images\Picture.gif", {name: "Picture.gif"}) .setImage('attachment://Picture.gif')
7 replies
DIAdiscord.js - Imagine an app
Created by ! Bemep on 1/21/2023 in #djs-questions
How to specify the path to the image from a folder on the computer in .setImage?
.setImage('D:\Pictures\Picture.gif') - not working
18 replies
DIAdiscord.js - Imagine an app
Created by ! Bemep on 11/15/2022 in #djs-questions
How can i edit a message by its id?
So I did it like this, but got an error "TypeError: Cannot read properties of undefined (reading 'messages')"
const Discord = require('discord.js');
const { Client, GatewayIntentBits, Partials } = require('discord.js');
const client = new Client({ intents: [GatewayIntentBits.Guilds], partials: [Partials.Channel] });
const { EmbedBuilder } = require('discord.js');

module.exports = async (bot, args, argsF) => {
const exampleEmbed = new EmbedBuilder()
.setColor(0x00c0ff)
.setDescription('New description.')
const channel = client.channels.cache.get(`1038743646670966854`);
const message = await channel.messages.fetch(`1038743874950135818`);

channel.messages.edit("1038743874950135818", { embeds: [exampleEmbed]})
}

module.exports.names = ["edit"];
module.exports.interaction = {
name: 'edit',
description: 'Command description.',
defaultPermission: true
};
const Discord = require('discord.js');
const { Client, GatewayIntentBits, Partials } = require('discord.js');
const client = new Client({ intents: [GatewayIntentBits.Guilds], partials: [Partials.Channel] });
const { EmbedBuilder } = require('discord.js');

module.exports = async (bot, args, argsF) => {
const exampleEmbed = new EmbedBuilder()
.setColor(0x00c0ff)
.setDescription('New description.')
const channel = client.channels.cache.get(`1038743646670966854`);
const message = await channel.messages.fetch(`1038743874950135818`);

channel.messages.edit("1038743874950135818", { embeds: [exampleEmbed]})
}

module.exports.names = ["edit"];
module.exports.interaction = {
name: 'edit',
description: 'Command description.',
defaultPermission: true
};
12 replies
DIAdiscord.js - Imagine an app
Created by ! Bemep on 11/13/2022 in #djs-questions
How to edit a message by its id (discord.js v.14)
I have an embed and need to edit it
20 replies