#github-notifications

1 messages ยท Page 2 of 1

chilly siloBOT
#

When you go into Server Settings > Integrations > Bot, and you modify the channels section:

image

This will make all slash commands available for all users, regardless of their synced permissions. Forcing users to have to go command by command to restrict them to certain roles, instead of being able to still use "default member permissions".

This is very inuntiuitive, as users ...

chilly siloBOT
#

Currently, modals are the only supported solution for providing multiline content without message intent (slash commands do not support this). This means it's currently impossible to allow a user to provide multiline content with emojis and mentions in without them copying ids and knowing how Discord's formatting works.

In my opinion, this suggestion would be the ideal solution to this problem.

chilly siloBOT
#

Description

the message_count property on threads has the total count of bulk-message-deletes twice subtracted from the current message count, offsetting the message_count accuracy by however many messages were deleted. This problem only shows itself with the rest API, and is not present when using the gateway, meaning that locally tracking the state is accurate to the gateway, but wildly off when fetching the thread with the rest API.

Steps to Reproduce

  • Create a new thread
  • ...
chilly siloBOT
#

Found this in testing, the message_count is now always incremented past 50, whether the thread was created before or after July 1st. The real limiter is the message creation time--before july 1st the thread was limited to 50 on the message count, but after july 1st, all messages increment the counter. Open to wording suggestions if anyone has a better way to word this!

chilly siloBOT
chilly siloBOT
#

Context

@shaydewael mentioned in #5374 that mdx is now supported by the render engine. Though the change was removed from that PR to make the diff cleaner, the switch seems to be coming hard and fast.

There's a small (but very active in this repo) group of people that did this conversion in the past during a hackweek, you can see the repo here. It allowed us to make a lot of usability changes and generally was bett...

chilly siloBOT
#

Description

deleting messages with delete_message_seconds set to anywhere from 1 to 600 deletes upwards of 10 minutes (or 600 seconds) of history.

Steps to Reproduce

prerequisite: have an account that has messages sent that have at least 10 minutes worth of history.

ban the user from the server with delete_message_seconds set to 1. This can be sent with any number less than 600, as the least amount of messages deleted will always be of the last 10 minutes.

Expected Beh...

#

I have been struggling to solve this problem for days.
I wanna explain some workaroud ways and their problems for those who suffer from the same issue.

A general suggestion is to cache the invite codes in the inviteCreate event and match them later in the guildMemberAdd event by fetching all invites for far.

This is problematic because when creating an link for a specific person the only thing you have is the invite code(for one time links)
So when the user uses this link to join the ...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Ty

6 Eyl 2022 Sal 22:41 tarihinde snek @.***> ลŸunu yazdฤฑ:

Closed #5441 https://github.com/discord/discord-api-docs/issues/5441 as
completed.

โ€”
Reply to this email directly, view it on GitHub
https://github.com/discord/discord-api-docs/issues/5441#event-7333302483,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXKGQIFWOU2RLAGSH7QTNZDV46M7FANCNFSM6AAAAAAQGEBFV4
.
You are receiving this because you authored the thread.Message ID:
@.**...

chilly siloBOT
chilly siloBOT
#

These are my own thoughts, but they aren't set in stone or the thoughts of other apps team members....

  • At first, I don't think we'd support component contributions. For a migration like this, it'd be easier to start off smallโ€”things like converting alert components like you mentioned. I really really do not want the actual conversion to mdx become a huge project, or else it'll likely be pushed off for a while.
  • The component code also lives on our side, and there's not a good way to...
chilly siloBOT
chilly siloBOT
#

This is all kind of what I was expecting. My one concern is components for mdx are a bit different than the highjacked md rendering engine components we're used to. Generally speaking you import the components at the top of a file like any other language and place them where you need them. So yes we'd need documentation to point at the file paths that will exist. However, I don't see how that stops us from making a components directory in this repo and importing from it (the deps thing was lo...

chilly siloBOT
#

So it's unideal but from what I understand: currently for MDX we still do a mash up of the existing parser and "real" MDXโ€”the parser supports MDX components/their general syntax on our end, but it's still parsed in a semi-hijacky way rather than components being imported like traditional MDX (at least from what I've seen). How I've been thinking about it is kind of like...global MDX components rather than per-file imports, with some custom parsing logic required. In the future, we should of c...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

In my opinion, custom colors isn't a good idea, but having a wide range of available colors to select from should do the task. image
@BlackThunder01001 **Your Opinion is wrong people should be able to select what they like its the right of freedom and someone might not have those colors as their favorite color so there fore the guy above you saying about buttons colors is right everyon...

chilly siloBOT
chilly siloBOT
#

How does discord expect us to create a boolean input?

Select

They take a complete action row, which is too much for a simple toggle.
It is unnecessary to have a select with 2 elements, of which 1 is clickable.

Button

If so, what colors should I use for on and off? It can be really confusing and I can't find any combination that'll stand out - in my embed, this toggle is the most important button.

  • Green for off (enable) Red for on (disable)
  • Grey for off, Blue for on
  • Grey for off, Gre...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

If you copy and paste a slash command from the chat box that has localized labels, Discord won't suggest the command until you rewrite the text in the chat box to use the original non-localized label.

Steps to Reproduce

  1. Have a command that has localized name
  2. Type the command with its arguments
  3. Copy the command from the chat box
  4. Delete the command from the chat box
  5. Paste the command to the chat box, note that Discord won't suggest using the `/localized...
chilly siloBOT
chilly siloBOT
#

Feature

Some buttons can have a property in JSON like "require_2fa": true, and this would require 2FA, the button gets disabled for non-admins if admin_only is true and for admins who don't have 2FA enabled, it would be a disabled button and a message saying that they require 2FA will be displayed when hovered on the button. The button will also have a secure lock icon to indicate that it requires 2FA. When this pressed, the admin will get a 2FA prompt, and after 2FA is filled and ve...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

My old bot system supported both c!ใ‚ฟใ‚คใƒ  and c!ๆ™‚ๅˆป for relaying a user's time under ja-JP.

Slash commands do not even support a fraction of this feature: I would have been alright with naming the command ใ‚ฟใ‚คใƒ  and emplacing ๆ™‚ๅˆป in its description, but when entering slash commands, descriptions are not searched.

I am proposing an additional field to the application command object:

 {
   "name": "command.time.name",
   "type": 1,
   "description": "command.time.descript...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

It can be right, maybe it can be solved by gating this behind an intent; for example my bot has a favorite system that can be manipulated by other bot, but they need to have access to the user's account on my bot for that; DMs will be the best way for my bot to ask the user if they want the other bot to manipulate their account - but I can't guarantee said user shares a server with my bot.

chilly siloBOT
chilly siloBOT
#

For your usecase, I would suggest allowing adding a bot as friend.

There will be "Add Friend" button on bot's profile. A human can either press it or manually type out bot's username#discriminator in Add Friend tab to add a bot as a friend. Unlike another human, bot should immediately be added without them accepting the request - that's why the button should not say "Send Friend Request".

While a bot is human's friend, both human and bot can send DM to each other, notwithstanding mutual...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

That dev comment is largely hinged on a moot point. There is no reason to assume aliases would be displayed in chat as the command name used or even sent to applications. The search process could resolve all that before the client sends the interaction. Issues with clutter in the picker are problems that need to be fixed in the picker and are not caused singularly by aliases.

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Something that my friend pointed out recently: On his Discord server, he can paste the localized commands without needing to rewrite to use the non-localized label. However I'm not sure why it works on his server, maybe it is because I have multiple bots with the same command label on my test server?

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

As said below, completely hindering the permission might've been over exaggerated. Hence I changed the proposal to lock them upon invite to the server. There are lots and lots of people who just invite the bot without checking/removing the permissions it actually needs. There are way too many bots being invited with this and only this permission.

Server members would later be able to grant the permission to the bot, with the warning already within the description of the permission.
...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

I strongly agree with the idea of being able to add bots as friends. This could be useful if you keep your DM disabled, but still want to receive DM from specific bots.

However, if this is implemented, bots shouldn't be able to fetch their friends list, or receive any events related to users adding/removing the bot as a friend or we would start to see bots requiring to be added as friends to work.

Like you can block a bot to prevent it from DM'ing you, you should be able to "friend" it ...

chilly siloBOT
#

Description

If your bot has localized commands, and you click on a localized command in the "Try my commands" section, Discord won't automatically.

Steps to Reproduce

Click on any localized command in the "Try my commands". The localized label MUST NOT be the same label as the original label.

Expected Behavior

That Discord would select the clicked command.

Current Behavior

Discord pretends that nothing happened.

Screenshots/Videos

English (Works fine):
https:...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

While I totally see this use-case, I'm concerned about the potential impact on server permissions. Many server owners restrict send message permissions in channels that provide information or logging to their members. It would be very bad for users to be able to send slash commands in these channels, since non-ephemeral replies would disrupt the channel; interaction responses do not have permissions checks like this since the user expects a reply.

While it would be possible for us to only ...

chilly siloBOT
#

Description

Command slash (/) fails to send

Steps to Reproduce

On the cell phone when I go to type a command from this Disboard bot, pressing it doesn't work it fails

Expected Behavior

The command should send when pressed or typed but it fails

Current Behavior

command fails

Screenshots/Videos

After a few clicks it works

https://user-images.githubusercontent.com/59896657/190014337-f2790f21-4f26-4e4e-9d5e-08ddaae74cf2.mp4

Client and System Information...

#

Description

One or more messages deleted, even so they appear in the notification, it keeps appearing td hr

Steps to Reproduce

A friend deleted the message from the bot, but after a few minutes a notification appear

Expected Behavior

That it doesn't appear in notifications when turned off

Current Behavior

It even deleted after a minute message notification appears when I go to see there is no message

Screenshots/Videos

No response

Client and System Info...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Wow, I didn't expect such serious accusation on my comment which shouldn't really be a problem. Surely confirming the reality clearly contradicts what someone said and remindind them to reaffirm that whether they have genuine understanding of the scope or not are violates your CoCk, sounds doubleplusgood, Your Almighty Highness? YOU refrain from providing clearly false information and throwing false accusation.
And no, threatening me with your CoCk will NEVER, EVER, EVER, EVER make me...

chilly siloBOT
chilly siloBOT
#

In the case of existing channels, I only see this as a problem if the server currently has Send Message off, but Use Application Commands on for some reason. The solution from Discord's end is to turn off Use Application Commands perms for any channel in this state when rolling out the update. I agree that restricting replies to ephemeral isn't the solution but I don't think there needs to be a solution like this. I think if users want to turn off Send Messages for a user but still allow them...

chilly siloBOT
chilly siloBOT
#

A setting can be toggled by original poster to make that post available to public and that post can be discoverable through search engines. This will actually be helpful for people who seek solutions in the web. They can read the post and discussions to get a better overview of the issue. As discord is a big platform there will be high volume of solutions of numerous problems and high chance of interactions to the issues unlike other platform where people just hope for solution.

chilly siloBOT
#

After a bit of digging, it looks like to be an X amount of invite to delete every 12 hours. (like 1-2k request)
I can understand that is against dataminers and other process to bruteforce & find invite codes but some features require us to delete invite code, and at a large scale it's just simply not possible. (and this limit is per ip, so even my custom bot instance can't use it)

So instead of having a client endpoint to delete invites, I would be able to use a channel endpoint to delete...

chilly siloBOT
#

@Hamsterland (sorry about not getting back sooner, GH didn't notify me of this reply :ded:

I think we should probably break up the documentation here based on triggerType, rather than mark all of them as optional.

What do you mean?

Basically this PR and documentation marks these fields as optional, but IMO its more true to the code that we're using a union type for triggerMetadata which keys on triggerType.

So for triggerType === KEYWORD, `triggerMetadata === Keywo...

chilly siloBOT
chilly siloBOT
#

hmmm is there a reason this sort of info isn't in the tag object instead, since that's where the name field actually lives?

https://discord.com/developers/docs/resources/channel#forum-tag-object-forum-tag-structure

I was thinking about that before, and I decided to put that on the Modify Channel route section because that information is applied more specifically in that part, but I will change it to the tag object

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Sorry for not answering. In theory, everything could change by time. For example if you have an item system where items might not be available at a certain time or people might change values, it would be a bad thing to still suggest it in the autocomplete.

Also I'm autocompleting time options, since discord currently does not have any datetime picker as a slash argument.
I also have a ranking system that ranks people every hour and resets the leaderboard after every full hour.

So yeah...

chilly siloBOT
#
| suppress                   | boolean                                                          | whether this user is denied permission to speak |

i think your edit is definitely an improvementโ€”suggesting a small edit to align it with other boolean language ("is X")โ€”i think including "does not have" will cause a tiny bit of confusion. feel free to edit further, im not tied to my suggestion.

also sorry this is gunna mess up your table formatting ๐Ÿ˜“

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Every members need

a personal opt-out toggle button that can hide ALL commands from the slash command list they don't have permission to carry out (for example, mod commands for regular users) by previous bot settings.

a personal opt-out toggle button that can hide every server that doesn't offer any avaiable slash commands from the server list on the pop up window.

a favourite/most used slash command field for apps/phones.

Because the whole slash command thing was forced on...

#

Hello ! ๐Ÿ‘‹ (@appellation)

I just tested using the Edit Original Interaction Response route and it still doesn't work properly at the moment. It's still relying on the @everyone role when it should be relying on the bot permissions.
I don't have any problem when I try to edit a followup message.

Let me bring up the problem because I think there has been an update of the API s...

#

@Smidul @ooliver1 The commands people have no permission to carry out by the original settings on the bot ARE showing up regardless of what you are stating. (This screenshot is from a regular user.)

Screenshot_20220916-133108889_1

Completely unrelated to what I said, a separate discussion or issue should be made as the permission system is entirely different.

#

@Smidul @ooliver1 The commands people have no permission to carry out by the original settings on the bot ARE showing up regardless of what you are stating. (This screenshot is from a regular user.)
Screenshot_20220916-133108889_1

Completely unrelated to what I said, a separate discussion or issue should be made as the permission system is entirely different.

This isn'...

chilly siloBOT
#

Just a few things that i think you might have missed or misunderstood from the conversation in ddevs

a favourite/most used slash command field for apps/phones

Frequently used commands are already automatically displayed at the top of the picker, under the tab with a clock icon. However, it's per-user so you might not see it if you don't use slash commands yourself

a toggle button that can hide ALL commands from the command list users don't have permission to use

**Individual...

chilly siloBOT
chilly siloBOT
#

I also would like this functionality. The requirement to use a slash command option makes the workflow of the bot awkward in many use cases. My current use case requires an admin workflow where uploading a file as a requirement is unknown until after using components to navigate to an optional state that needs the upload.

A modal type works. However a button component of type attachment button that would pop up the file find dialog with an optional extension filter when pressed would work...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

I don't think it's true that this is a partial objectโ€”all of the required fields look like they're there and when I'm looking at the types in the codebase, referenced_message's type is no different than a regular message object.

It is in fact a partial object, as not all the information is provided. An example of this is the reference message missing guild_id and member, even tho the message is clearly sent in a guild (notice the guild_id in the reply message). The aim of this PR...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#
  • Split up Forum docs into sectionsโ€”I think it should actually move onto its own page eventually, but that can come later.
  • Split up the syncing/unsyncing. It was a little hard to quickly parse, so I tried to split up into different parts and change the language to be more specific to apps.
  • Also slightly reorganized the Threads page (I think compatibility and syncing details can go to the bottom, basically). I want to do a larger pass at this at some point, but not nowww
chilly siloBOT
chilly siloBOT
#

So allowing this would allow for prefilled help commands, query the bot and they misuse the command, it can suggest what it should be, already filled out. In an event system, where members join with slash command, that event command could be prefilled with the event number. Ticket/bug systems could suggest reporting and autofill any errors that occurred (kinda lazy development but still an idea).

chilly siloBOT
chilly siloBOT
#

maybe mention tags here

A `GUILD_FORUM` (type `15`) channel is similar to a `GUILD_TEXT` channel, except *only* threads can be created in that channel, and forum channels support organizing their threads with tags. Unless otherwise noted, threads in forum channels behave in the same way as in text channelsโ€”meaning they use the same endpoints and receive the same Gateway events.
#
Returns the messages for a channel. If operating on a guild channel, this endpoint requires the `VIEW_CHANNEL` permission (and also the `CONNECT` permission for voice channels) to be present on the current user. If the current user is missing the `READ_MESSAGE_HISTORY` permission in the channel then this will return no messages (since they cannot read the message history). Returns an array of [message](#DOCS_RESOURCES_CHANNEL/message-object) objects on success.
chilly siloBOT
chilly siloBOT
#

Can you expand on use cases?

Basically any follow up action which you want to have arguments on which are validated inside discord or have autocomplete or where the information is too much to get into a custom id of a modal (I wouldn't want to save a custom id of a modal in a database in case somebody in the future may want to follow up. This would allow for more flexible followup commands since modals only support plain text and basically no options you have available in slash commands.

chilly siloBOT
#

That sounds scary tho, what's your use case?

A new kind of raid is to use a selfbot to bulk change the permissions of all bots. This is very annoying especially on large servers.
Imagine an anti-raid bot... that could restore bot (integrations) permissions.

Unfortunately, anti-raid and backup bots cannot save or restore these settings.
It could also allow a bot to present a simpler GUI to edit multiple permission groups directly.
A new OAuth2 scope should be added.

chilly siloBOT
#

Description

When using a button on a message, the resulting interaction has no reactions array on the message context.

Steps to Reproduce

  1. Create a button message
  2. Add a reaction
  3. Press button

Expected Behavior

The reactions should be present in interaction.message.

Current Behavior

There is no reaction array.

Screenshots/Videos

Reacting with both custom and unciode emoji:

![image](https://user-images.githubusercontent.com/18090140/191313322-e81ea...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

I'm confused, what does Zapier have to do with the official Discord API?

In any case...

USER ADDED IN DISCORD
Currently it does not return the email address. If this field is added, it would also be easier to match user identities across systems.

User names and email address can be changed by the user.

For your use case, what happens if a user gets premium, and then they change their username and their email? When their premium runs out, you won't be able to identify the user an...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

It seems like following channels has also been affected by the restriction that webhooks have where they cannot contain the word "Discord" in their name. Unfortunately, the client doesn't display much information other than "Failed to follow the channel. Please try again", and it makes it impossible for people to follow a server's announcement channels.

Steps to Reproduce

  • Create a server and name it something like "prryplatypus' discord"
  • Enable community and create...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Presently, if someone wants to manage the AutoMod, they either need Manage Server or Administrator permissions [excluding being owner, as permissions have no impact on the owner].

The Manage Server permission however, includes many other permissions which are not very suitable to be giving to a moderator if you just want them to manage the AutoMod. The situation with Manage Server is becoming equivalent to the dangers posed to granting someone access to Manage Roles: in that case, Manage R...

chilly siloBOT
#

Going to close this PR out -- this is kind of a less common case where we are trying to document type where different fields are relevant based on the value of another field (trigger_type). Technically every field in trigger_metadata is optional since its trying to serve as a union type but seems like it's clearer to just have this description:

Different fields are relevant based on the
value of [trigger_type](#DOCS_RESOURCES_AUTO_MODERATION/auto-moderation-rule-object-trigger-type...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Unfortunately, a change was recently made that makes (new) crossposted messages always use the source guild icon, ignoring the configured webhook icon that was previously used. Many servers have custom icons set to better communicate the purpose of that webhook or to distinguish multiple webhooks from the same guild, but now those crossposted messages have a worse experience as they always show the guild's icon. Ideally setting a custom icon would still display that instead of the source guil...

#

Currently, only Stage and Voice channels can have capital letters, spaces, and symbols. I believe that Announcement channels should follow the same rules. Additionally, as Stages and Announcement channels are often used for publicity/outreach, it would make sense for them to follow the same rules.

These channel names (in my opinion) can look a lot nicer than text channel names; and are nicer to look at in a list of introductory channels (pic attached).

![image](https://user-images.gith...

chilly siloBOT
chilly siloBOT
#

Description

Both the client and API allow the avatar of a type 2 webhook to be overriden but this does not override the source guilds avatar.

Steps to Reproduce

Create a type 2 webhook
Publish a message using the type 2 webhook message publishing system

Expected Behavior

The avatar of the type 2 webhook is used in the message published through the type 2 webhook message publishing system

Current Behavior

The avatar of the type 2 webhook is not displayed as message avat...

chilly siloBOT
chilly siloBOT
#

Thanks for the report. On a API/technical level this behavior is working as intended. The configured webhook icon is a default value but can be overwritten when webhooks are sent. You can refer to our documentation for additional information:

  1. https://discord.com/developers/docs/resources/webhook#webhook-object-webhook-structure (see avatar description`)
  2. https://discord.com/developers/docs/resources/webhook#create-webhook-json-params (see avatar parameter for sending webhooks, ...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#
dvf

Description

It's difficult to find out what permissions my bot has inside a guild. For example, the docs suggest using https://discord.com/developers/docs/resources/user#get-current-user-guilds but the permissions on the partial guild object are omitted when the Bot makes the request.

The only workaround I've found was suggested by a very helpful user in the Discord Developers channel (@c__beck):

Leverage pagination on Get Current User Guilds to force the search to return the gu...

chilly siloBOT
chilly siloBOT
#

and are created the same way as threads in text channels

There are some small differences actually, for example when creating a thread in a forum you must also create a message at the same time in that API call, so there's some extra args required.

private threads are currently not supported in forum channels so all threads created must be of type PUBLIC_THREAD

I'd suggest tweaking this a tad because it implies that we might support private threads in the future and that you ...

#

I'm not sure if it was clear or not, but this section isn't really a "problem" for apps. It's more here just to explain why apps might experience some "unexpected" dispatches. Apps are already auto-subscribed to threads, so they don't have this problem that our clients do, but IIRC it wasn't trivial to determine that where I needed to in the backend, so everyone gets this extra dispatch.

So, this change is a bit weird because it leaves out all the explanation for why this happens.

If y...

#

Optional, but my 2c is that the little bit in parens before, (since the gateway only syncs threads that the client has permission to view) is valuable because it helps explain why this is a problem and connects it back to the principles at the beginning. Some of the extra context like this that we had before I think probably helps with understand why there's all these extra hoops you need to jump through as an app developer. But I don't feel super strongly about it either.

chilly siloBOT
chilly siloBOT
#

I wonder what you mean by "scary". Bots currently, using a bearer token can update their own integrations permissions. However, this doesnt extend to other bots. Servers having multiple bots which want to effectively sort bots based on commands, types etc find it very difficult to for example, when a new channel is created and all bots need to be added to it.

Going to each integration and adding the bot is a huge waste of time.

A bot could just request authentication, which will giv...

chilly siloBOT
#

Description

Hello There,
I'm facing some issues while attempting to localize my bot commands to the French Language.
When I try to localize the interaction response /slash command descriptions or options, discord doesn't recognize some letters like "รฉ, รช, รจ" or "รง", it shows some weird text (for example "iรงi" it shows "iรƒยงi" from the clientside).
And for example coffee command, when I localize the command name to "cafรฉ", it throws an error and it doesn't get localized, but when I loca...

chilly siloBOT
#

I completely agree!
Another idea: Scrollbars? Right now modals are limited to 5 rows which isn't nearly enough and I have to do weird, really bad UX, stuff to work around the issue (Send a button users click to get the next modal).

I'd also appreciate if there Selects would be brought back, because rn it's just terrible what I have to do without them.
There were working on desktop, then got pulled back because they didnt work on mobile (for whatever reason).

Thanks!

#

I completely agree!
Another idea: Scrollbars? Right now modals are limited to 5 rows which isn't nearly enough and I have to do weird, really bad UX, stuff to work around the issue (Send a button users click to get the next modal).

I'd also appreciate if there Selects would be brought back, because rn it's just terrible what I have to do without them.
There were working on desktop, then got pulled back because they didnt work on mobile (for whatever reason).

Thanks!

chilly siloBOT
#

Description

If you defer a Slash Command ("Bot is thinking..."), users won't be pinged after editing the message.

Yes, technically is a message edit, but I don't think that

  1. Receiving a slash command
  2. Deferring it (so the "Bot is thinking..." indicator is showing up)
  3. Updating the message

shouldn't trigger a ping

I have a /pay slash command, if I do /pay @Loritta, I want the mentioned user to be notified, but I need to defer the message because I need to query t...

#

shouldn't this be a feature request instead? edits never notify the mentioned roles/users so that sounds like it's working as intended

Yeah, thinking about it, it could be a feature request.

But at the same time I do think it is a bug because it isn't behaving how someone expects the feature to work. Yes, technically it is a message edit behind the scenes, but I do think that a lot of bot devs may expect that updating the original interaction message WHILE it is in the "Bot is thinkin...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Moderators should have a way of removing a members guild avatar and banner in a way they can reset the members nickname.
They shouldn't neccessarily be able to change the avatar and banner to something different but just reset them.

Why is this needed?

  • This gives a moderator more control over moderation. Intead of having to ask the person to remove the avatar or banner a moderator can just remove them. This way the moderator can just mute a member (e.g. when impersonating or being ...
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

@hemu Hi, strong opinon here :) It's better to be explicit in the documentation rather than leave it up to interpretation of an accompanying descriptive text. There is a mechanism for marking fields as optional; it should be used. If a field is not marked as optional, I will always expect it to 1) always be present when receiving and 2) be absolutely required when sending.

Add optionality markers is not notational noise; it's a plain requirement if the docs are to be clear and obvious. Th...

#

That is true, though I would argue that those objects are also wrong to not
mark the fields as optional and leave it to a loosely attached description.

On Mon, 26 Sept 2022 at 20:53, advaith @.***> wrote:

There are many objects where the description indicates that all fields are
optional, so the markers are not needed in that case. The description here
could be edited to clarify that though.

โ€”
Reply to this email directly, view it on GitHub
<https://github.com/discord/di...

chilly siloBOT
#

As of some time ago, interaction responses use the bot's permissions for everyone mentions.

Honestly though I'm not sure if that warning box should even stay where it currently is. Right now at first sight it appears as if it's referring to table above it, and then below that it suddenly talks about responding to an interaction, unrelated to modals. There should probably be some divider, or the tables moved to the bottom of the section, or something else.

![](https://im-a-dolphin.de/s/4...

chilly siloBOT
chilly siloBOT
#

Description

Using a command interaction to open a modal from within a forum thread while it is not opened in 'Full View' causes the submission to fail and the interactions endpoint to return a 400 error with the response {"message": "Cannot execute action on this channel type", "code": 50024}.

If instead the modal is submitted with the thread in Full View, it succeeds.

Steps to Reproduce

  1. Create or open an existing thread inside of a forum channel that is not i...
chilly siloBOT
#

Answer

The behavior of requiring SEND_MESSAGES as well as USE_APPLICATION_COMMANDS to be able to use commands (slash, context, etc) is an intentional choice that arose from having to make a decision in a gray area.

Reasoning

It was decided that it didn't make sense to grant users with no ability to create messages in a channel the ability to create them via a bot. The thinking here is that the avenue for abuse is easy to accidentally setup when considering how SEND_MESSAGES ...

#

Answer

The behavior of requiring SEND_MESSAGES as well as USE_APPLICATION_COMMANDS to be able to use commands (slash, context, etc) is an intentional choice that arose from having to make a decision in a gray area.

Reasoning

It was decided that it didn't make sense to grant users with no ability to create messages in a channel the ability to create them via a bot. The thinking here is that the avenue for abuse is easy to accidentally setup when considering how SEND_MESSAGES ...

chilly siloBOT
#

A fix for this is adding x-real-ip to header when calling Discord (or any rate-limited API) from a Cloudflare Worker.

https://developers.cloudflare.com/workers/runtime-apis/headers/#request-headers

In same-zone Worker subrequests, the value of CF-Connecting-IP reflects the value of x-real-ip (the clientโ€™s IP). x-real-ip can be altered by the user in their Worker script.

// replace w/ your IP, or some other IP
"x-real-ip": "127.0.0.1"
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Hey @Emre-Zero, I've done some testing of my own and with the x-real-ip of 127.0.0.1 and my own IP. I am consistently getting back a 403 Forbidden error.

Are you sure you're testing the right thing? To be extremely clear:

chilly siloBOT
chilly siloBOT
chilly siloBOT
#
[discord-api-docs] Branch hemu/add\-automod\-regex was force-pushed to `dc7a2f6`
#
[discord-api-docs] Branch hemu/add\-automod\-regex was force-pushed to `51cb5a3`
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

When connecting to a shard, you receive a full list of guild create events. When you're on large bot scaling, that's a very large amount of bandwidth.

Sometimes you know in advance that you either won't need any guild creates, or otherwise a filter for ones you know you aren't caching currently.

I'd implement this by adding a guild_denylist attribute to the identify payload, and ignoring those guilds when sending the initial wave of creates. (A denylist rather than allowlist means y...

chilly siloBOT
#

Description

My bot sends a DM to a user which contains an embed and a few buttons. The embed is set to colour 0 (black). When I receive an interaction for a click on one of the buttons, the embed received with the message on the interaction does not have the "color" property anymore.

I then send an UPDATE_MESSAGE to disable the buttons. As far as I can tell, my request only contains the components, not the embeds (I'm using Discord.JS but I tried to debug the code as close to the API ...

chilly siloBOT
#

Description

My bot sends a DM to a user which contains an embed and a few buttons. The embed is set to colour 0 (black). When I receive an interaction for a click on one of the buttons, the embed received with the message on the interaction does not have the "color" property anymore.

I then send an UPDATE_MESSAGE to disable the buttons. As far as I can tell, my request only contains the components, not the embeds (I'm using Discord.JS but I tried to debug the code as close to ...

chilly siloBOT
#

There are clear reasons for limits. Channel name updates f.e. have gotten their limits changed from a few seconds to iirc 2 minutes BECAUSE of bots with "auto-updating" features (showing stats through channel names).

Also, to my knowledge is the repeated, automated performance of actions towards the Discord API a violation of their Developer ToS.

So for your own safety, don't have such features.

(Disclaimer: Any of this info could be outdated and/or wrong. I do not guar...

chilly siloBOT
#

Description

For a few weeks, when I launched my discord client on a computer (mac) it became impossible for me to access the slash commands from this client. No apparent explanation came to mind. Commands are not offered to me in the text input field, and Markdown and emojis are not previewable. So I thought it might be the visualization setting not working, but it's not because it's already enabled. I restarted my client as well as my computer several times, that didn't change anything....

chilly siloBOT
#

Description

Cannot submit modals in posts in forum channels.

Steps to Reproduce

Attempt to submit a modal triggered by a component on a message in a post of a forum channel.

Expected Behavior

The bot should receive an interaction event.

Current Behavior

When Discord client tries to POST /api/v9/interactions, it receives a 400 and:

{"message": "Cannot execute action on this channel type", "code": 50024}

The bot does not receive any interaction event.
...

chilly siloBOT
#

improves the benefits of context menus (Apps).

Not being able to use context menus does kinda suck, not gonna lie. This is a known problem (hello translation bots?) but given the things mentioned before, this isn't something we're looking to support currently.

Maybe you could separate context menus into a new permission, "Use Application Menus" or something, which would be separate from "Send Messages" whilst keeping "Use Application Commands" the same behavior. This could ...

chilly siloBOT
#

The Discord API returns a 400 Invalid Emoji response if the Variation Selector-16 (U+65039) character is included within name when using a unicode emoji with message components. It took me quite a while to figure out the cause of this error. I'm going to work around this issue by simply ensuring this character is stripped from future API requests, but it was still kind of difficult to figure out what was going on. This issue happened to me with the hourglass (โŒ›) emoji as entered by a user. ...

chilly siloBOT
#

Description

Select menus remain open if the select is disabled by the bot whilst in use.

Steps to Reproduce

  1. Send a message with a select
  2. Whilst having the select open, disable the select via editing
  3. Notice how clicking anywhere will not close the select, and the message input box does not function

Expected Behavior

The select to close when it is disabled

Current Behavior

The select remains open and will not close

Screenshots/Videos

Cannot screen-record ...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

My discord stay on a full gray inteface and when i try to desinstal its like it dont exist on my pc, when i close it just dont open more at all, i have do re-instal just do go back to this, this happened after i have to force turn of my pc after a game crashed and i was in call, if i try to desinstal it dont appear on the list, but if i seach on the windows an seach stills appears like it is all normal, after around 10 min the second image appear, its in portuguese brazilian ...

chilly siloBOT
chilly siloBOT
#

Currently it is only possible to reply to one message at a time, but it would be great to be able to reply to multiple messages at once with a single message.

This would help in cases where several users ask the same question and all may receive the same answer, this helps to avoid unnecessary extra pings and messages. They are created to notify all users that they should see the response.

chilly siloBOT
#

Description

Sometimes when my bot sends a callback it gets a [Thread is archived] error.
I only see it in my logs I don't know how to trigger it... it is very annoying since I can't even display that error to the user because well... I can't send a callback

Uploading D540402C-7653-4E5D-8304-080DAB69C2CA.jpegโ€ฆ

Steps to Reproduce

I don't know

Expected Behavior

Unarchive the thread or don't give me an error

Current Behavior

It sends an error and I have no way of...

#

Description

Mentioning slash commands using the new syntax `` will always show the exact string entered before the colon, whether that's an existing command or not.
I was hoping that, if it could match it to an existing command, it would use the name_localizations of that command (and any mentiond sub command groups and sub commands) to show the mention in the locale of the user reading the message.

Steps to Reproduce

  • Set up a bot with a slash command named help that has name_...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

When you follow a channel a custom webhook is created with the guild and channel's name as well as the icon associated with said guild

However when you upload a custom webhook icon to one of these channel follows, the icon does not apply in subsequent received messages
Creating a new webhook yields no results as well
Other edits seem to work fine such as the name
Tried PNG, JPG and WEBP formats when uploading, also tried changing name along with the picture it also didn...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

This feels like labelling an issue as intended design only to avoid fixing it, this webhook image override used to work just fine, you broke it and now tell me it's intended, when if it were really intended, there wouldn't be an upload option to begin with, sounds like lazy development over a design choice in my opinion, but hey, it's not me designing Discord's User Experience to be as deceiving and inconsistent as possible :) Have a great day

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Currently, the number of server to which the user belongs can't be obtained from the user infomation on the Discord API, but it would be nice to be able to obtain the number of servers to which the user belongs from Discord API in the future

(* As far as i know) it is not possible to check the number of servers a user belongs to on the Discord Client, which is very inconvenient

chilly siloBOT
chilly siloBOT
#

Description

Not sure if this is intended, but if you search for a server in discovery, then switch to another account, the discovery section will keep the same search.

Steps to Reproduce

  1. open discovery and search for a server
  2. switch your active discord account using the switch account feature
  3. open discovery on your new account

Expected Behavior

I would of expected it to reset

Current Behavior

The search is staying the same

Screenshots/Videos

_No respons...

chilly siloBOT
#

With the APP Directory around the conner (I think), and some elements already being localized (global commands) present in the Apps profile.

I believe localized descriptions need to be among the next steps.

For a user, go to the profile and see a mix of text in different languages, don't think it's a very good exp.

The ultimate goal is to offer a more homogeneous and consistent localized for the users.

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

I'd like to add a note to this - it seems that if you go over the limit then it can also seemingly remove slash commands from a bot that once had them working perfectly fine.

And on top of that, once those slash commands have been removed, nothing seems to be able to bring them back from what I've tried. Not going under the 50 integrations limit. Not kicking them and reinviting them back in afterwards. It seems that once they've been removed there's no bringing them back.

Been fighting...

chilly siloBOT
chilly siloBOT
#

Description

Bots that have the "External Emojis" permission are unable to use external emojis in SLASH COMMANDS inchannels that have that channel denied for members.

In short, slash commands permissions are syncing with channels and not with server.
I believe this issue is related to #5288 that was resolved recently.
Also believe it is related to #5279 but I believe a separate issue is required.

Steps to Reproduce

  • Find a bot with slash commands that uses external emojis
  • G...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Currently, we have channel_types array to limit the types of channels allowed by a CHANNEL option, however, I may want to limit the allowed file types for an ATTACHMENT option type. So I am proposing file_types field which would be an array of file extensions allowed for an ATTACHMENT option. An example of an option that allows images only would be the following:

"type": 11,
"name": "image",
"description": "Upload an image",
"required": true,
"file_types": ["png", "jpg...
chilly siloBOT
chilly siloBOT
#

I found a workaround that worked for me.

  1. Do one of the following:
    a. Go to a server (usually with less than 50 integrations) that shows slash commands for the target bot.
    b. Go to a server where you have the ability to add bots to and authorize the target bot with the applications.commands scope.
  2. Open the slash command menu.
  3. Scroll down to the target bot on the left side of the slash command menu.
  4. Open Developer Tools (usually by pressing Ctrl+Shift+I).
  5. Go...
chilly siloBOT
#

Would really like to see this, at the moment in Integrations > Command Permissions as it says "restrict usage of this applications command to roles and channels" but would appreciate if slash commands worked with the existing channel permissions that if a bot is restricted from View Channel\Read\Send Messages that blocking the use of slash commands would not even show the user that bot in the slash list just like that bot would not appear in say a text channel in between the users when it is ...

chilly siloBOT
#

There is a endpoint for getting all user guilds but not specific guild

GET /users/@me/guilds

But,

GET /users/@me/guilds/:guildId

Is doesnt exist, would be greate if this feature are accepted. because we will hit ratelimit fast if request to route /users/@me/guilds
this is useful for discord bot dashboard developer which can return latest member permissions and guild object. instead of caching which is not reliable.

chilly siloBOT
#

Description

When attempting to upload a file as an attachment in a discord slash command, the only option shown is to upload images. Files are missing as an option, while they are available for regular attachments. And the bot accepts other files on the desktop version of Discord.
I have not tested this on Android, so I am not sure if that issue exists there.

Steps to Reproduce

  1. Create a slash command discord bot with an attachment option.
  2. Run the slash command on iOS and at...
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Permissions are determined based on the combination of server-level role permissions and channel-level user/role permissions, with channel-level overrides having the ability to revoke permissions granted at the server-level.

As such, this seems to be working as intended

However, Administrator permissions override Channel permissions. Thus, permissions are not working as intended.

chilly siloBOT
#

This seems like a complete no-brainer. Why make guild admins set these permissiond on every individual channel when every other type of permission (includibg automod) can be set by category?

Plus requiring these permissions to be by individual channel almost guartees new channels will have the wrong permissions - either blocked when they should be allowed, or (probably worse) allowed when everything else in the category blocks them.

chilly siloBOT
#

Currently, bots are restricted to having only one instance in one voice channel so they can't be in multiple voice channels at once. Allowing bots to have multiple instances in multiple voice channels opens up to gates for new bot ideas with voice channels.

Admins will be able to effectively moderate voice channels by using bots to record and store content from multiple voice channels at the same time.

And, I can't really see any disadvantage with adding this.

chilly siloBOT
chilly siloBOT
#

Description

When attempting to use a refresh token to get a new access token (grant_type: 'refresh_token'), the API returns {error: "invalid_client"} if a client secret is not provided. As I am using PKCE, the client secret should not be required and is not safe to use as this is a client-side environment.

After discussing the issue in #api, I have confirmed that this is a Discord bug.

Steps to Reproduce

Do the authorization_code flow with PKCE to get an access_token and a...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Summary

The API exposes lots of useful functionality for end users that should be able to be used progmatically without the need of a bot, for example a user may want to be able to change their status code via a 3rd party application or even receive or send messages using the api via a 3rd party applications.

Use Cases

In my scenario I maintain an open source automation tool which hooks into 3rd party systems like twitch, twitter, obs etc where users setup flows to automate things....

chilly siloBOT
#

Sorry to bump an old thread, but what is the process of getting "whitelisted" for this API? could not find this anywhere and (unless I missed it) it would be great to save others the trouble and mention that in the docs.

Thanks!

Any recommendations @night @msciotti @shikhir-arora ? Have been trying to get this done for over a month now, and there's no protocol for this in the docs (perhaps we should add it?)

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

nah, it's all good, from the data it's definitely working

On Wed, Aug 24, 2022 at 8:38 PM imanataee @.***> wrote:

I made a bot solution for the auto-archive before the bug report, so my
threads went down from 1000 to 100, which makes me unable to confirm if
things are better now
But I can try to turn the bot off to make sure or make 900 threads (?)

โ€”
Reply to this email directly, view it on GitHub
<https://github.com/discord/discord-api-docs/issues/5369#issuecomment-12...

#

This is more like a question than an idea or whatsoever.

I've been wondering for quite some time why users who do not have access to a channel can still see them, including the topic field, when requests are made to /guilds/{guild.id}/channels and when doing a request to the channel endpoint such as /channels/{channel.id} you get

{
    "message": "Missing Access",
    "code": 50001
}

Why not actually make it non accessible to users who are not supposed to have ...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

For my app, I want users to be able to be represented by their use avatar in 3d. A crossorigin="anonymous" request doesn't work, which adds the unnecessary overhead for a dev of implementing a proxy on their own backend to implement this feature. This also doesn't seem clearly documented anywhere, so easy to go on a wild goosechase tracking this down--CORS issues are always a pain.

Please support cross origin requests by responding with the correct headers.

chilly siloBOT
chilly siloBOT
#

Description

If a top command have one or more subcommands, it will not appear in the "Try my commands" section.

Steps to Reproduce

Have a subcommand as a popular slash command.

Expected Behavior

The "Try my commands" section should show 5 popular commands (parent command for the popular subcommand), similar to the App Directory.

Current Behavior

The "Try my commands" section skips subcommands and shows less than the 5 expected popular commands

Screenshots/Video...

chilly siloBOT
chilly siloBOT
#

Description

Currently when a bot creates a guild, it will only authorize the bot with the bot scope in the guild, it will not authorize it with the application.commands scope. This is inconsistent with the oauth2 page, which forces the application.commands scope if you have the bot scope.

Currently I have to rely on the logic of the someone getting the admin permission so their client can run the migration whenever they choose to click on the server, and then go into settings ...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

Some servers are part of an experiment which causes certain AutoMod filters to be "force-enabled", that is to say, the admin or owner does not configure the feature, but they are enabled with a default. If a server is enabled for such experiments, the automod action event cannot be processed by bots, because the rule_id is set to the number 1, which will obviously never be found if you then proceed to fetch the rule object within the action event processing.

Steps to Rep...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

Newly added type 8 select menus show private category channels to all members who does not have access to them.

Steps to Reproduce

Make a type 8 Select Menu

Expected Behavior

Do not show private categories if the member has no permission to view channel.

Current Behavior

Able to see private categories even if the member does not have any perms to see them.

Screenshots/Videos

![](https://media.discordapp.net/attachments/898886636434260008/1030312659628...

chilly siloBOT
chilly siloBOT
#

we're taking a look at this -- I agree this is incorrect behavior and not something clients of the API should have to account for or deal with. Thank you for reporting this ๐Ÿ™

Thanks for looking into it. Considering the experiment has been force-enabled on all COMMUNITY flagged servers [apparently two days ago], there's going to be a lot of bots that will now have difficulty parsing automod action events, caused by a triggering of the mentions spam filter in those discords. So hopefully, ...

chilly siloBOT
#

I really want this. It's sad to say that there are plenty of users who have pornographic material in their banners that go unnoticed or require manual moderation. It's good that we file Trust and Safety reports for this, but not everyone is going to do this.

Having no access to the banner's image will be a detriment to moderation bots that work off of checking things like profile pictures already for non-NSFW. Getting the banner also means we could begin proposing future implementations,...

chilly siloBOT
#

We're putting in a fix for this today where this system mention rule will now have a valid static snowflake ID and will be queryable via the get_rule endpoint to hopefully address the issue for most problematic use cases right now. Will have a followup change after to make this more consistent across the api (e.g. most likely return this rules as part of the get_rules endpoint as well)

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

Using payload_json with the Create Guild Sticker endpoint (seemingly implemented in #3969) results in unexpected and inconsistent behavior contrary to other endpoints using payload_json in the API.

Steps to Reproduce

  1. Send the following request
    curl --trace-ascii - -s -H"Authorization: Bot $BOT_TOKEN" \
        -F"file=@file.png" \
        -F'payload_json={"name": "testing","description": "testing sticker","tags": "tag"};type=application/json' \
    

...

chilly siloBOT
#

Thank you for the thorough reply. It has been a little while since I initially made the post and a lot of the new message components (along with ephemeral replies) cover a lot of what I was looking for (here's looking at you, modals!)

Not being able to use context menus does kinda suck, not gonna lie. This is a known problem (hello translation bots?) but given the things mentioned before, this isn't something we're looking to support currently.

That's a bummer, but understandable. I d...

chilly siloBOT
#

The new select menu types are great, however I believe they could be better if we were able to use the options field on these types too or if we could limit options, like only allowing the choice of:

  • a specific list of roles
  • members with a specific role
  • channels under a specific category

etc.
I think this functionality would extend the use case highly.
I know that these can still be done by passing the names of the choices we want to allow into a string select menu but that is...

chilly siloBOT
#

๐Ÿ‘‹ Hey there!

I'm recently creating an app which has a function, which allows users to build embeds using Select Menus and Modals (An embed preview with a select menu with the editable options). While doing that, I realized, that it would be very helpful if I could register Slash Commands and their Options with a Regex Field, which should allow us, to show a customized error message, if the Regex isn't met (either via a gateway event or hard-coded in the Slash Command Registration proce...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Instead of four arbitrary combinations of types, a single "filtered select menu" should be available.

The following ordering of enums, field names, and other fine details are to illustrate this idea and are not part of the suggestion itself

Example select inclusion enum:

USER = 1 << 1
ROLE = 1 << 2
CHANNEL = 1 << 3
...

Example select payload

{
   "type": FILTERED_SELECT,
   "include": 10 //This includes users and channels according to the above enum
 ...
#

I agree with this discussion.

The current operation of Slash commands permissions is very dangerous for server administrators and moderators. Changing the default allowed/forbidden channels of all commands can make a server very vulnerable to malicious actions.

In my opinion, I see two solutions to this problem:

  • Add a warning message, like when changing a single command by stating that the default permissions will be ignored when changing the default permissions for all commands
    <i...
chilly siloBOT
chilly siloBOT
#

As it stands now, to have server with multiple channels only for specific users we need to use roles, because permissions overwrites are now limited to 500. I would suggest implementing something in server settings -> roles a folder system which would ease the problem when server has 100 or more roles and it is messy to organize it properly when onlz thing the roles does is enable them to see channel/category.

chilly siloBOT
chilly siloBOT
#

+1, having a filterable role select menu would be great for replacing old react role lists and it'd be nice to be able to give specific channels to select from with certain commands (eg: channels currently whitelisted through the bot, etc)

You can use the string selects for that, sure, but populating those can take a fairly large amount of data depending on what you're doing (like grabbing all the roles/channels in a server so you can populate their names in the options). It'd be a lot easie...

chilly siloBOT
chilly siloBOT
#

Description

Context

@yonilerner closed #5144 because he was "not sure exactly what [that] issue was about". This is only significant due to his request in closing, which would prevent necessary information - required to finalize and complete that issue - from being clarified. In other words, please do NOT close issues that you have not participated in.

This issue is a follow-up to #5144: For context, #5144 aims to give the documentation maintainers enough information to clarify...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

and automating interactions is not allowed (as it requires using a user token which isn't allowed).

i was getting the same error messages. and what do u mean it's not allowed..the dev portal has examples pertaining to interactions - it's supported by the interaction api. anyway, i was able to get this to work. would prefer if i could get it working w/ websockets and asyncio though - that seems problematic

chilly siloBOT
chilly siloBOT
#

Description

I've seen this issue reported by many people but so far no one has been able to gather enough information to reliably explain what's going on. An example can be seen at https://github.com/discordjs/discord.js/issues/7005
In summary, every now and then at a seemingly random chance it's possible that a bot's reply to an interaction fails due to an Unknown Interaction when, in reality, the reply succeeded and was shown to the user (by reply I mean a regular reply, deferred repl...

chilly siloBOT
#

I acknowledge the original issue may have been closed without much input from our team, but in general issues posted to the API docs repo are reserved for bug reports. Anything else should be asked in the Developers Discord or a GitHub Discussion. To open an open ended discussion, we generally recommend using GitHub Discussions.

To answer to some questions raised before closing this:

What is the significance of the word "often...

chilly siloBOT
chilly siloBOT
#

Thanks for the response.

As I don't believe I will be creating the PR to implement the information we have discovered, I will make the following note.

There are sometimes exceptions or mistakes that can cause this to not be true, and I would recommend opening an issue if you find routes which you believe do not follow this rule.
โ€” @night

If you are interested in possible issues that may arise from these "exceptions or mistakes" (on the misclassification of a route's rate limit ...

chilly siloBOT
chilly siloBOT
#

There are clear reasons for limits. Channel name updates f.e. have gotten their limits changed from a few seconds to iirc 2 minutes BECAUSE of bots with "auto-updating" features (showing stats through channel names).

Also, to my knowledge is the repeated, automated performance of actions towards the Discord API a violation of their Developer ToS.

So for your own safety, don't have such features.

(Disclaimer: Any of this info could be outdated a...

chilly siloBOT
#

They already answered this in a past DDEVs event, see here: https://youtu.be/e5m_Sx9zyb0?t=1886 Tl;dr: not many people run into this limit so they won't do anything

If not many people run into it they may as well just increase it, it won't hurt. I had to split my command into two commands to set and unset the configuration of a server through my bot just to bypass the limit, which is not very user-friendly. I'd really appreciate more information on this.

#

They already answered this in a past DDEVs event, see here: https://youtu.be/e5m_Sx9zyb0?t=1886 Tl;dr: not many people run into this limit so they won't do anything

If not many people run into it they may as well just increase it, it won't hurt. I had to split my command into two commands to set and unset the configuration of a server through my bot just to bypass the limit, which is not very user-friendly. I'd really appreciate more information on this.

You are welcome to as...

chilly siloBOT
#

Description

When discovery is fully enabled on a bot, you can no longer disable it. The page displays "We were unable to save your changes. Please try again later" and console logs a 400.

Steps to Reproduce

  1. Have a verified Discord bot
  2. Meet the requirements to enable discovery
  3. Enable discovery
  4. Refresh the website
  5. Disable discovery

Expected Behavior

You should be able to disable discovery by clicking the button "Disable Discovery"

Current Behavior

T...

chilly siloBOT
chilly siloBOT
#

Hello,
I need to update my site's database when a member joins, leaves, and rejoins again my discord server.

use case:
Suppose a member joins my server, I give him his role depends on his adherence to my site.
But, if the client leaves the server and joins it again , it loses its role.
I want to know, can my discord server trigger an event that I can catch by sending either
1 - a call to a URL of my site.
2 - or simply send an email to the member containing a url that the clie...

chilly siloBOT
#

indeed. folder categories would be a pretty neat feature. like we could set default permissions to categories and sync them with the roles and after that could maybe edit it, similar to how channels and channel categories work.
grouping ornamental roles and actual staff roles into separate categories would make management much organized. the categories may not be needed to be visible to regular users and/or assignable. could just be an internal thing from settings.

chilly siloBOT
#

Description

When you have a message that only contains message components, such as a button, starting a new thread from this messages results in an empty starter message.

Steps to Reproduce

  1. Send a message with only a button (or any other component, dealers choice)
  2. Start a thread from this message

Expected Behavior

Either you cannot start a thread from component-only messages, or properly handle it by copying the components.

Current Behavior

The starter message ...

chilly siloBOT
#

Description

The time for missed messages is never correct . It also says I havenโ€™t read messages even if I did even if I sent it you can clearly see Itโ€™s not even 12 am but it says it is

Steps to Reproduce

Maybe just tak time directly from system instead of discords system even though they use system time

for number 2.
I think you could make it so that you messages canโ€™t possible mark you and also use Snapchats code where even if u glance at it youโ€™ve read it

Expected Beha...

chilly siloBOT
chilly siloBOT
#

I'm running into the 4000 limit already with less than 20 total subcommands on a general purpose configuration command. The advertised "625 subcommands per root command" seems a little insane given the fact that if one were to even attempt that, they would be allotted approximately 6 characters per subcommand for name, description, and values(?). I can understand not wanting to overly bloat single commands for stuff like client rendering of commands, but this limit just seems straight up ...

chilly siloBOT
#

Description

When markdown preview is disabled in User Settings, you cannot use a command with a channel option. The channel selector shows but the pill has a red outline and errors when you try to send the command.

This issue was reported to me by a bot user who did not know why it was not working, and I can reproduce when I turn off markdown preview.

Steps to Reproduce

  1. Turn off markdown preview in User Settings > Text & Images
  2. Try to use a slash command with a channel ...
chilly siloBOT
chilly siloBOT
#

Can you provide some more info such as:

  • application id
  • the actual response contents of the http request

App ID: 614109280508968980
It appears that the bot doesn't have access to discovery, which also prevents me from disabling it

Here's the response:

{"code": 50035, "errors": {"discoverability_state": {"_errors": [{"code": "APPLICATION_DISCOVERABILITY_ELIGIBLE_REQUIRED", "message": "Deze actie kan niet worden uitgevoerd omdat het verzoek niet in aanmerking komt ...
chilly siloBOT
#

I have resolved it by using the authorize URL to generate the token (and add the bot) by the same user that owns the application. I was using my main account to add the bot instead of my alternative test account.

Thank you guys very much!

I'm sorry to re-open this discussion, but I got the same issue when I was trying to add a user to a Discord server. I use the same account to authorize but it doesn't work. Did I missed anything important?

chilly siloBOT
#

Confirmed that there is a bug here.

  • Request 1: This should just work and I've found the bug. Will be opening a PR
  • Request 2: This should fail with a 400 indicating that name and tags are required. When you provide payload_json it becomes the source of truth for the request, so the parameters not being in there causes the 400.
  • Request 3: This should just work and I've found the bug. Going forward, like with Request 2, payload_json will once again be the source of truth.

Tha...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

My bot (Interaction Bot) does not appear in the category Utilities, yet it is marked as part of this category. But it appears correctly in its other categories (Moderation and tools). I don't know how the referencing system works in these categories but sela seems really strange.

Steps to Reproduce

Go to App directory
Write the name; Interaction Bot.
And you can't see my bot.

Expected Behavior

See my bot in the category Utilites.

Current Behavior

Don't...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

I understand Stage is an audio only channel - but it could be much more by enabling a TV like functionality where the camera switches from the Speaker on stage to the audience asking the question only. This way there will be only two speakers sharing their camera/video = one speaker and the other the person requesting to talk. This would be a really cool feature.

#

I run a chess server and have related BOTS installed. After a lot of engagement - the forum channels have become ghost towns since most members prefer using simple bot commands during chat. This sort of beats the point for focussed discussions. The admin should be able to select forums where selected BOTS are allowed and working. This will drive community engagement much more.

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

Up until about 2022-10-20T22:00:00Z my bot had been online for 8 days and working in 3000 servers. Then a breaking API changed happened and it was no longer possible to do the following API request with the bots current permissions:

POST https://discord.com/api/v10/channels/1008115952099020880/messages/1033089960053592164/threads

{
   files: undefined,
   json: {
      name: 'a',
      auto_archive_duration: 1440,
      type: 11,
      invitable: undefined,
...
#

This error goes away if I remove the rate_limit_per_user: 0. But we should have gotten a heads up for this breaking API change, as I had my bot stop working for 3M users, and I had to implement a workaround.

I don't want to be that guy but it's not the first time the API suddenly breaks my bot without a heads up and it really makes the DX of working with Discord's API really poor. I don't mean to sound harsh, but it really does make me want to avoid using Discord's API in future projec...

chilly siloBOT
#

So in this screenshot you've mentioned #General but that's not a valid mention. Text channels cannot have capitals, so more likely this is a voice-channel mention of a General channel. The problem is that raw-input textbox (e.g: Markdown Preview disabled textbox) doesn't support non-text-channel-like mentions (#<name-here>). This means that you can't actually mention voice/stage channels (nor categories) with raw-input because raw-input changes the mention to #<name>.

So in the sho...

#

Yeah, this command only accepts voice channels.

I looked into it more and it turns out that the name of the channel is irrelevant, it just fails for selecting any voice or stage channel.

image

Also, this issue affects standard voice/stage channel mentions in messages (by typing #!name and using the autocomplete), so it isn't just commands. However, I think the more urgent issue...

#

We hit this with forum channels a while ago, back when the default_thread_rate_limit_per_user field was added there.

Looks like text channels now also support it? The client UI doesn't show it for text channels yet, but setting the field on text channels works and it gets inherited to threads created in that channel. I suppose that's why specifying rate_limit_per_user: 0 now requires additional perms (even if it matches the default_thread_rate_limit_per_user value :/ )

#

I looked into it more and it turns out that the name of the channel is irrelevant, it just fails for selecting any voice or stage channel.

I wasn't implying that the name casing or format was the problem. The problem is the mention syntax. The mention syntax of #<name> only supports resolving text-channel-like channels, like Text,News,Thread.

The mention syntax for Voice/Stage is #!<name> but you can see in your screenshot that it isn't correct.

#

Also, this issue affects standard voice/stage channel mentions in messages (by typing #!name and using the autocomplete), so it isn't just commands.

The problem is that raw-input textbox (e.g: Markdown Preview disabled textbox) doesn't support non-text-channel-like mentions (#<name-here>). This means that you can't actually mention voice/stage channels (nor categories) with raw-input because raw-input changes the mention to #<name>.

chilly siloBOT
#

For context, is there a requirement in the RFC spec for WebSockets indicating that a client-provided close code should be echoed back to the client on close?

It appears that there is no requirement for echoing back the client's close reason, at least no where in the specification that I could find (highlighted in bold italics).

7.4. Status Codes

When closing an established connection (e.g., when sending a Close
f...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

First of all, I apologize for my poor English.

description

I wrote a code to join members using guilds.join of Discord qauth2 api. There was no particular problem when it worked, and we confirmed the participation of a small number of accounts in the test environment. But the code stopped working as soon as the number of accounts increased. For some reason I got a 403 error. I was told that I do not have an access token, but since the access token was passed as an argumen...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

I use the code query discord provides but taking that query and using that in a request to retrieve access_token returns an error
{"error": "invalid_grant", "error_description": "Invalid \"code\" in request."}

Steps to Reproduce

Just use the code from the query discord provides.
Make request to https://discord.com/api/v10/oauth2/token with all valid data

Expected Behavior

That it will return invalid code error description.

Current Behavior

Still the ...

chilly siloBOT
#

This affects more than just integer types, it seems. When a user is sent autocomplete options in Android, whatever option they select, it seems to select the name instead of the value, leading to an inconsistency with the desktop version.

If you have an autocomplete option

{ 
    "name": "foo - some extra info about foo", 
    "value": "foo"
}

instead of the expected "foo" value being actually sent as the string option, "foo - some extra info about foo" is sent, ...

chilly siloBOT
#

Tertiary Buttons[unofficial name], were added to the client as the color used for the "Add to Server" buttons on bots with Premium App Subscriptions, however, this button is not usable as a component.

Example of this in use:

You have 3 buttons, the first one is important so you set it as Primary, and the 3rd one is not as important so you set it as Secondary. However, the 2nd one is more important than the 3rd, but less than the 1st, so what would you do? Instead of having the 3rd one ...

chilly siloBOT
#

An issue with this is for things that display user input, a user could theoretically send a link for an interaction that they should not access. For example, let's say pickle_juice is an interaction custom ID that renames the server to "Pickle Juice", but is only sent when a command restricted to admins is used. A user could use, let's say, <kbd>/poll description:[a](interaction://pickle_juice)</kbd> and then click "[a](https://www.youtube....

chilly siloBOT
chilly siloBOT