#Problems by sending DiscordWebhookBuilder

1 messages · Page 1 of 1 (latest)

remote oasis
#

Can someone tell me what i am do wrong ?

i set defferasync
i build combobox with max 25 items.
Than i am send this combobox by CtxMessageSender

my other method can run normaly but is limited with 5 items and run exact same way.

compact archBOT
#

Hello, I'm an automated bot to help people with common issues. Here's a list of stuff that I think are related to your problem.

Automated suggestion: You don't have the Message Content Intent enabled

As of September 1st 2022, Discord started requiring message content intent for bots that want to read message content. This is a privileged intent!

If your bot has under 100 guilds, all you have to do is flip the switch in the developer dashboard (over at https://discord.com/developers/applications, also see the image) and then specifying the intent in your DiscordConfiguration (see the code example)
If your bot has over 100 guilds, you'll need approval from Discord's end.

Even though you can just use this to get away with it, it is recommended by Discord to use Slash Commands whenever possible, so look into that if you can (Slash Commands Documentation)

More info:
https://support-dev.discord.com/hc/en-us/articles/4404772028055-Message-Content-Privileged-Intent-FAQ

Code Example:

DiscordConfiguration config = new() {
    // ...
    // If you do not set this, your bot will fail to start with the error code: "Disallowed intent(s)"
    Intents = DiscordIntents.AllUnprivileged | DiscordIntents.MessageContents,
    // ...
}
remote oasis
#

bot you arent helpfull this time 😦

main mural
#

What exactly are you sending

#

component wise

remote oasis
#

this works fine DiscordSelectComponent(nameof(UserSelectedTrack), null, this.GetQueueOptions(listOfTracks, ctx.InteractionId), false);

picture show values from GetQueueOptions

#

this not DiscordSelectComponent(nameof(EditPlayList), null, options, false, 1, ChannelInteraction.MAX_PLAYLIST_AMOUNT);

ChannelInteraction.MAX_PLAYLIST_AMOUNT = 25
picture shows options