White space or white message in an embed
Good evening,
In the bot configuration, when I build an embed on the website, I can put the symbol to create a kind of white space in the embed.
When I try to do this in the code directly with my in-house bot, it doesn't work. Do you know why?...
Fetching avatar and name from Discord ID
How can i get a discord avatar and a discord name just from their discord id, is there a way to fetch that? Or some url form where i need to put in the id for it to give me an avatar.
I cannot even see the commands registered
So my files look like this:
index.js https://sourceb.in/3gU3xsnpt5
src\
deploy-commands.js https://sourceb.in/dfM4gUHKbJ
deploy-moderation.js https://sourceb.in/TKkZZGiARM...
how do i change the permission overwrites of a thread?
im not sure how to do this; it's a thread ticket system and im not sure how to set permissions for the thread
client.application.commands.permissions.set(), 401: Unauthorized
When I try to use the
client.application.commands.permissions.set()
I get the 401: Unauthorized
You just use the bot token right? or do you have to use the application secret but i still get the error then. What am I doing wrong?Application did not respond
Hey there! I decided to hop into discord js without almost no js knowledge (I know, not a good practice). I'm currently trying to create a slash command. The command is registered, however it seems like the async execute part of my slash builder is not working? Would appreciate some help.
Issue
```
/app/node_modules/undici/lib/core/connect.js:190
util.destroy(socket, new ConnectTimeoutError(message))
^
ConnectTimeoutError: Connect Timeout Error...
How do you add commands to user-installed apps?
I'm not sure how to add commands to the apps. I'm using the default deploy script shown from https://discordjs.guide/creating-your-bot/command-deployment.html#guild-commands. Here's the code for the command:
```js
const {SlashCommandBuilder,ApplicationIntegrationType,InteractionContextType} = require("discord.js")
module.exports = {
data: new SlashCommandBuilder()...
bot is not starting
so i made first time a bot and its not starting the terminal gives no info at all any ideas i did something wrong?
Send message to specific channel
Hi i'm trying to get a list of textchannels to log to. But when i use client.channels.fetch i keep getting 'null'?
here's my code.
```ts
const channels: TextChannel[] = []...
Finding partner
Hello
I'm software developer
I have innovative idea and so I am looking for partner collaborating with me for long term
If u are interested me , anytime send DM me...
Image on embed message
Hi, I have a bot that sends an embed message with an image uploaded using
AttachmentBuilder
The image displays correctly, but when I edit the message ~8 hours later, the image no longer works. Does the image expire? I'm modifying the message with the REST API, so I fetch the message before editing it to retrieve the embed :Thonk:...TypeError: ticket.send is not a function
Can someone help me?
```
export async function transcriptTicket(language, interaction, reason = null) {
const ticket = interaction.guild.channels.fetch(process.env.TICKET_TRANSCRIPTS_CHANNEL_ID);
const category = ticketEmbed.embeds[0].title.split('|')[1]?.trim();...
List of all application SKUs with their names and type
Can I somehow in discord.js get a list of all SKUs of the application?
djs version: 14.16.3...
Collectors
Hey guys , how u doin.
dont have a code issue , more of a question ( not looking for an answer in code , just some guide or link of how i can solve my problems ).
So some context about what im doin.
I got collectors in my code that after user execute a command bot dm the user and ask the user for some info , which i gather them with Collectors....
Unresponsive bot + No errors
Hey y’all! Just ran into a quick problem. My bot is online and logging the ready event, but it’s not responding. There were no errors thrown in the terminal, and the message when it started was logged. Quite uncertain on what happened.
``module.exports = (client) => {
client.on('ready', () => {
console.log(
${client.user.tag} has logged in!`);...