sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
Trying to compare 'messageUpdate' event
content_scan_version
The event gets fired, when i read the message.
...Change in how discord links emojis?
https://cdn.discordapp.com/emojis/${emoji-id}
, name: emoji-name }); and that worked for all emojis. But it seems discord emoji links are now of the form https://cdn.discordapp.com/emojis/{emoji-id}.webp?size=240&animated=true. Does anyone if this is behavior that was changed...changed from npm to pnpm, bot doesn't work anymore
pnpx prisma generate
Property 'send' does not exist on type *channel types*
if (!message.channel.isSendable()) return;
Interactions randomly fail in a dockerized bot
Is there a way to make autocomplete options only accept a listed option - not "custom" inputs?
Profile Color Member
Subcommand not registering
/channels
command (here is the code: https://hastebin.skyra.pw/cezeqivufo.less) but when I try to run the bot, I get the following error:
```
2024-09-20 17:40:06 - ERROR - ApplicationCommandRegistry[channels] Failed to register application command with name "channels" DiscordAPIError[50035]: Invalid Form Body...new SlashCommandBuilder()
with (builder) => builder
and now it works!
```ts
// Pretty much like this:
export class ChannelsCommand extends Subcommand {
public override registerApplicationCommands(registry: ChatInputCommand.Registry) {...Slash Commands Embeds
Help with message deletion
How does one check if a specific user was mentioned in a message?
Typing - Question message
import { EmbedBuilder, Guild, Message, User } from 'discord.js';
import { EmbedBuilder, Guild, Message, User } from 'discord.js';
Keep getting "Shard 0 is reconnecting..." errors
14.15.2
.Question about developing in TypeScript
Is there a way to make the bot press a button component within a message
getChannel does not exist for interaction.options
ts:32:51 - error TS2339: Property 'getChannel' does not exist on type 'Omit<CommandInteractionOptionResolver<CacheType>, "getMessage" | "getFocused" | "getMentionable" | "getRole" | "getAttachment" | ... 6 more ... | "getSubcommand">'.
const channelOption = interaction.options.getChannel('channel', true);
ts:32:51 - error TS2339: Property 'getChannel' does not exist on type 'Omit<CommandInteractionOptionResolver<CacheType>, "getMessage" | "getFocused" | "getMentionable" | "getRole" | "getAttachment" | ... 6 more ... | "getSubcommand">'.
const channelOption = interaction.options.getChannel('channel', true);
Editing a message deletes it
Guild
class I extended with types. upon clicking one of the buttons, the message gets edited with new information. For example if someone pauses the song the button changes to another button. But the problem with that is that, upon editing the message. It deletes it. Pictures besides 1st one, show the code pretty much.
2nd pic shows how i store the message and what happens when a track starts playing
3rd pic shows whath what happens when player gets resumed (same thing happens with pausing or any event that edits the message stored)...MongoDB Discord.JS (Only saving to 1 profile)
Help fetching users