#github-notifications

1 messages · Page 12 of 1

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

It would be nice if the select menu choice and autocomplete choice limit could be increased from 25 to 40. With 25 you can for example not allow all days of a month for selection and you cannot provide all characters of the alphabet if the initial auto-complete choices have all of them. With 40 you could e. g. have a-z and 0-9 and even have 4 special characters with which your choices can start.

Couldn't agree more with this!

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Currently to access the banner of a user you have to force fetch it, you cannot directly access it from a Guild User.

In the meantime you can get the avatar from the Guild User without force fetching because it can be cached.

So my suggestion is to make it so we can also grab the user banner from the api without force fetching the user from the client but also from the Guild User.

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#
4-9

Description

As per #6792 the localisation is not working in the UI again

Steps to Reproduce

Send some translted metadata

[
  [
    {
      "type": 3,
      "key": "sigil_verification_level",
      "name": "Sigil Verification Level",
      "name_localizations": {
        "fr": "Niveau de vérification du sceau"
      },
      "description": "Sigil verification statuses: 2=Warden, 1=Not Verified, 3=Verified, 4=Vouched, 5=Veteran, 6=Moderator, 7=Admin, 8=Vetter, 9=Vo...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Hey there, I have had a lot of issue with having to cache the messages from all of the the channels, these issues are as follows, rate limits and the amount of space it takes up for no reason if it was just sent with the message update event.

I propose that you send the old message content(embeds) with the new as an old and new message. This will save over all a lot of computation and storage space. Thank you ;).

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

Semi rant ahead because I've spent the past hour or so trying to shoehorn my idea into the current metadata types and only managed to come up with half solutions...

I'm currently working on a project that I would like to use linked roles for, however the current options for metadata types are very limiting in what they can support. As an example, if I want to make a check for if a user has a certain flag on my platform, the only option to be able to check would be a BOOLEAN_EQUALS configur...

#

While less than idea, that is correct. I think in most areas of our API it's going to just be missing from the payload if it's not set. In this particular case, for whatever reason, we tend to include and make it nullable. I want to reserve the right to make it optional in the payload like other fields, so documenting it as potentially not there and potentially null gives us the most flexibility.

chilly siloBOT
#

Description

Knowledge about this influences how we deal with this on a library level (whether we can assume presence and expose the field directly or need to implement these with or recommend an additional GET c...

chilly siloBOT
#

Description

I send the same message about 100 times, and got 2-4 times an error, stating that the button component has an invalid emoji (invalid payload) Tbhe other 98-96 times, it worked just fine, without changing the payload.

image

Steps to Reproduce

With my application i sent following components array data while patching (update) an interaction

![image](https://github.com/user...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

update:

I was able to greatly reduce the number of errors by not responding to the webhook itself.

My setup now is as follows:

  1. [nginx] interaction webhook received via http, proxied to node
  2. [node] interaction webhook received via http
  3. [node] initial response sent via rest api callback
  4. [nginx] received code 499, meaning discord received the defer via rest api and terminated the webhook on their side
  5. [node] reply/followup sent via rest api

This solution is only ap...

chilly siloBOT
chilly siloBOT
#

Description

When creating a server from a server template all channels are created except forum channels.

Steps to Reproduce

From a server that has forum channels, create a template.
Create a new server from the template.

Expected Behavior

I except forum channels to be created as well

Current Behavior

Forum channels are missing

Screenshots/Videos

No response

Client and System Information

N/A

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Thank you for your quick response!
I tried it, but it still has the same problem, because it has been corrected for adding an entry from a purely empty field, but not for emptying an entry field from one that already has an item.

<img width="1412" alt="スクリーンショット 2024-09-11 0 05 42" src="https://github.com/user-attachments/assets/985d165b-6009-442e-b7e4-7b3b8630c5fc">

<img width="447" alt="image" src="https://github.com/user-attachments/assets/695426d3-3b94-49c8-a396-1f889b90ed3a">

chilly siloBOT
#

Description

Audience statistics are not working any more

Steps to Reproduce

Go to server insights https://discord.com/developers/servers/
Chose your server
On the sidebar menu, chose Audience

Expected Behavior

I expect:

Which countries are my members from?
What devices do they use?
How long have they been a member of the server?
Are my new members also new to Discord?

to display graphs

Current Behavior

All sections are showing "No data for selected period....

chilly siloBOT
#

Let's say a user is streaming a game in Discord for their group, and someone else is, in turn, streaming that Discord stream to Twitch or YouTube. In this situation, everyone's voices will be broadcast on Twitch or YouTube. However, if someone in the group is comfortable with their voice being heard on Discord but not on Twitch or YouTube, programs like OBS should be able to block that specific user’s voice from the external stream.

I imagine this would need to be done through an API. It w...

#

In addition, if a user never wants their voice to be streamed to another platform, there should be an option to set this as a default preference. Streaming programs could then detect and respect this setting, so that the user doesn't need to manually request exclusion each time someone is streaming to an external platform. This would be especially useful for users who may not even be aware that their voice is being broadcast beyond Discord.

Moreover, additional features could include a pop...

chilly siloBOT
#

Description

For several months, I've observed occasional issues with Discord's Cloudflare rate limiting configuration.
It's also documented to affect other users https://github.com/discord/discord-api-docs/issues/7040

Cloudflare Workers is a popular platform used by Discord bot developers. Cloudflare has a very active presence on Discord, assisting developers with Discord integrations on a daily basis.

Discord has even recommended developers to use Cloudflare Workers numerous time...

chilly siloBOT
#

Description

When creating a new application in the Discord developer portal, the application does not exist after the initial creation.

Steps to Reproduce

  1. Click "New Application"
  2. Enter application name and accept terms and conditions
  3. Click "Create"
  4. Try to update one of the fields
  5. See "Unknown Application" error

Expected Behavior

The application should not be removed as soon as it's been created.

Current Behavior

The application doesn't exist straight ...

chilly siloBOT
chilly siloBOT
#

@jkcailteux Thanks for reply. How is it not possible? I’ve used Cloudflare for half a decade and I’m pretty confident it’s possible

Clousflare documentation here https://developers.cloudflare.com/waf/rate-limiting-rules/#availability shows that ip.src.asnum can be used in the expression to exclude AS13335 (Cloudflare Inc. ISP)

Perhaps you thought I was talking about software rate limits built-in to Discord. I’m referring to CDN rate limit from Cloudflare. “1015 Error Code”, well kno...

#

@ jkcailteux Thanks for reply. How is it not possible? I’ve used Cloudflare for half a decade and I’m pretty confident it’s possible

Clousflare documentation here https://developers.cloudflare.com/waf/rate-limiting-rules/#availability shows that ip.src.asnum can be used in the expression to exclude AS13335 (Cloudflare Inc. ISP)

It's not a problem of possibility but rather the problem of the side-effects it would cause, such as the ability to abuse the API via Cloudflare withou...

chilly siloBOT
#

Yes, you can edit it with interaction token, but not using the message itself (the one you got with fetchReply()). The thing is that I need to edit that message after 15 minutes, so I try to use Message object and edit method for that, but it doesn't work at all, even without any 15 minutes, but just right after the message been sent or after 1 second (i tried both).

Is it intentional? Because I personally love ephemeral messages but I need to update them longer than after 15 minutes

#

It's not a problem of possibility but rather the problem of the side-effects it would cause, such as the ability to abuse the API via Cloudflare without any consequences. Cloudflare's ASN is also used for their WARP service so anyone would be able to turn on the WARP app and bypass ratelimits

Admittedly, Cloudflare Workers use a constant IP address of 2a06:98c0:3600::103 for websites protected by Cloudflare as documented [here](https://developers.cloudflare.com/fundamentals/reference/h...

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

Will the rich presence visualizer be updated to reflect this as well? And while the tables certainly might not be the best solution for these good-bad comparisons, I'm not sure if/how having the subtext in the image works with (dark/light) theming. You'd probably have to use a svg...

Thanks for the catches! Yes, I had this PR in draft mode while we updated the assets to use gray backgrounds for legibility (just updated these now!). Following up with my team about your other catches.

W...

chilly siloBOT
#

the boost Server Settings page fetches its data from an endpoint that returns all of the boosts and their users and expiration dates, so that endpoint would serve this purpose. for creator tier subscriptions they probably want servers to use role subscriptions instead of boosting.

Not to be a prick, but will this endpoint ever be accessible by bots? It’s been years since there’s been any “official” response or acknowledgement that this is still being considered.

chilly siloBOT
chilly siloBOT
#

Thanks for the catches! Yes, I had this PR in draft mode while we updated the assets to use gray backgrounds for legibility (just updated these now!). Following up with my team about your other catches.

I guess a gray background works, though it's not the best solution at least the text should be visible now...

What is the rich presence visualizer? Our team has not made plans to update this.

This tool on the app page allowing for easy testing: ![image](https://github.com/user-att...

chilly siloBOT
chilly siloBOT
#

Description

Creating a select menu inside a voice channel's built in text channel or a thread channel can't be clicked when used on a mobile phone.
I've received multiple reports of this issue from my users on different devices, including both IOS and Android.

Steps to Reproduce

  • Create a select menu inside a voice channel's built in text channel or a thread channel.
  • On a mobile device, interact with it

Expected Behavior

For the select menu to open up and give you the op...

chilly siloBOT
chilly siloBOT
#

Description

My bot logs invitation links sent in chat for statistical tracking. To achieve this, it fetches the server associated with the invitation link to identify invitations pointing to the same server. Recently, my bot was banned from Cloudflare for 24 hours, despite not exceeding the rate limit. The ban occurred after retrieving the 251st invitation within a span of fewer than 10 minutes. All other API routes are functioning correctly, but access to this specific route is blocked ...

chilly siloBOT
#

Description

Brought this issue up in #7137 and many agreed, including Cloudflare employees. though I think the Discord employee misunderstood me, he never replied after clarification given.

Discord's configuration with Cloudflare Bans has made Cloudflare Workers unreliable for myself and several others https://github.com/discord/discord-api-docs/issues/7040

Cloudflare Workers is a popular platform used by Discord bot developers. Cloudflare has a very active presence on Discord,...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Do note that is the wrong Cloudflare product and does not apply to workers.
Closests would be Aegis, but that'd require a special orange-to-orange setup or Enterprise magic.

Needless to say, both products are enterprise only. If you have that much money, you can dedicate a server for proxying traffic instead.

I don't think there is a proper solution for this except special logic that replaces the IP address with the [cf-worker header](https...

chilly siloBOT
#

our suggested approach to avoid IP bans from shared environments like Cloudflare Workers is to use a dedicated static egress IP. we will not be making Cloudflare Workers exempt from global rate limits.

Thank you for responding. It would be good if Discord looked into a separate, higher threshold for Cloudflare workers. Discord has the ability to add several different rate limiting r...

chilly siloBOT
#

I guess a gray background works, though it's not the best solution at least the text should be visible now...

Agreed. We updated to the gray background as an easy fix that matches how this problem is solved in current images.

This tool on the app page allowing for easy testing:

Thanks! Yeah ideally we should update this tool, too. Going to keep this out-of-scope of this PR, but will sync with my team about following up on this.

chilly siloBOT
chilly siloBOT
#

did you receive a number of 4XX status codes in those 10 minutes? multiple 4XX errors in a small timespan can lead to this sort of rate limiting

we will not be documenting the rate limits associated with endpoints, please consult this documentation https://discord.com/developers/docs/topics/rate-limits#exceeding-a-rate-limit

Since the bot attempts to retrieve the invitation data for all invites sent in the chat, some of the invitations were invalid, resulting in 404 errors. Otherw...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

Currently members with permissions to modify rooms and move them can move channels with impunity without revealing who they are. This is used by malicious people on many community servers and has been a known problem for years. Why this is a problem for Discord is incomprehensible given that there are already log entries for channel modification.

Steps to Reproduce

  1. Move a channel or role.
  2. Check the audit logs entries.

Expected Behavior

A new entry is added ...

chilly siloBOT
#

Description

When responding to an interaction by sending a message that contains a audio file and is marked as a Voice Message the waveform and duration_sec are ignored.

This only seems to happen on interaction responses.
When discord returns the message object with attachment information these fields are excluded from the response.

Steps to Reproduce

Create a slash command that send a audio file. Ensure that you use the message flag for voice messages (8192). Provide a wav...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

when creating a user / guild subscription for an app, I get hit with a

Validation errors:
Price tier is invalid 699

Steps to Reproduce

create a user / guild sub

change the price - then save

and get the error above
Validation errors:
Price tier is invalid 699

Expected Behavior

changing the price of a sub

Current Behavior

not changing the sub price

Screenshots/Videos

No response

Client and System Information

mac os / arc browser

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

Many users interact with bots on Discord, which act on behalf of users to execute commands and post messages. When a user is blocked, their direct messages are hidden; however, their interactions through bots are still visible. This can lead to scenarios where blocked users can indirectly affect others, contrary to the purpose of the block feature.

Technical Proposal:

  • Invokee ID in API Calls: Implement an “invokee ID” parameter in the API calls that bots use to send messages o...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

According to https://discord.com/blog/meet-dave-e2ee-for-audio-video, Discord is switching to E2EE channels, without offering any way to have server-enforced premoderation. To let users choose between the safety of premoderation and security of end to end encrpytion, end-to-end encryption should be made a per-channel flag that cannot be deasserted once asserted.

I'm not sure what you mean by "pre-moderation". What's wrong with E2EE and moderation?

#

Let's say a user is streaming a game in Discord for their group, and someone else is, in turn, streaming that Discord stream to Twitch or YouTube. In this situation, everyone's voices will be broadcast on Twitch or YouTube. However, if someone in the group is comfortable with their voice being heard on Discord but not on Twitch or YouTube, programs like OBS should be able to block that specific user’s voice from the external stream.

I imagine this would need to be done through an API. ...

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

Description

Despite working as expected inside the description field, markdown headers do not render correctly inside field values

Steps to Reproduce

Send an embed with a field whose value contains a properly formatted markdown header

Expected Behavior

It should render properly

Current Behavior

It shows the raw text (with the # visible)

Screenshots/Videos

Client and System Information

Not relevant and it (afaik) never worked on any plateform

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

We need clarification regarding the behavior of the /guilds/{guild.id}/bans bulk ban endpoint, particularly in cases where the bot or user initiating the ban loses the GUILD_BANS permission while the operation is still being processed.

Specifically, when using the bulk ban feature to ban up to 200 members at once, we would like to understand the following:

Key Questions

  1. Impact of Permission Loss During Execution:
    • If the user or bot loses their `...
chilly siloBOT
#

So funny enough, I think those date pickers do work. We went through some kind of data migration on the backend, and I think right now we don't have any data from before like Sept 6th. If you mess around with the date pickers, I am guessing anything after that date will actually update the graphs.

Regardless uh ... I will go try to see if we can get that data back.

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

I just created an app on the discord dev portal to use oauth2. When I create a link to access my app and I put the scope like "guilds.channels.read" or "guilds.members.read" it gives me the link but when I enter the link in my browser and when this redirects me to my browser, it gives me the following error: "http://localhost:5000/callback?error=invalid_scope&error_description=The+requested+scope+is+invalid%2C+unknown%2C+or+malformed .". The redirect link I put is "http://loc...

#

Does the bot have to be in the server? Because it's for a web app that handles actions and reactions. For example, you could say, 'if it rains, send a message to a channel with my account.' So, I need to access the channels of certain guilds without a bot, since the server might not allow inviting bots. I'm not sure if this is understandable.

Take a look at webhooks

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Hello, the bulk bans endpoint requires both BAN_MEMBERS and MANAGE_GUILD permissions. These are required as the user is banned, so if the actor loses permissions these bans will fail. These failures are included in the failed_users response property. More here: https://discord.com/developers/docs/resources/guild#bulk-guild-ban

All bans will include a reason. If your concern is reverting bans done by a bad actor, you could filter by the ban reason between a time range. https://disc...

chilly siloBOT
chilly siloBOT
#

Hello, the bulk bans endpoint requires both BAN_MEMBERS and MANAGE_GUILD permissions. These are required as the user is banned, so if the actor loses permissions these bans will fail. These failures are included in the failed_users response property. More here: https://discord.com/developers/docs/resources/guild#bulk-guild-ban

All bans will include a reason. If your concern is reverting bans done by a bad actor, you could filter by the ban reason between a time range. https:/...

chilly siloBOT
#

This PR (which was made after this DDevs thread) attempts to clarify which gateway close codes are potentially resumable, and which ones are not worth trying to resume.

The idea is that libs can immediately reset the shard's session state upon encountering a non-resumable close code, saving a useless connection to the gateway_resume_url.

The information on whether a close code is resumable or not is based solely on...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Yea, I see what you mean. There's no point. No, I wasn't trying to change the way bots act towards us lol. There's a specific server I go to, named Shapes Inc, which incorporates chatbots into discord. They work like regular apps, but are specifically made for roleplay purposes.

I wanted to be able to friend them just for fun. I know this sounds like a wacky feature, but it'd be cool to have some of my shapes (or Discord Apps) in this case be able to be friends with me, even though I'm no...

#

https://github.com/discord/discord-api-docs/issues/983#issue-456639514

For me, the use of such a feature would be tags like <blockQuote> - mere counterparts to the existent Markdown support - so that when I have a large block of code of text, I needn't prefix each line with >. Adding <ol>, <ul>, and their <li>s would also allow formatting lists easier when they have a significant amount of multiline content.

Consider how GitHub and GitLab do this for their comments - they do...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

@JD00h I just tried to reproduce this again and cannot. Some things to consider:

  • Do you have notifications on for all messages on that server? If so, even if the mention didn't parse, you might still get a ping
  • Do you have the role you're mentioning? If so, is the message highlighted yellow for you? If not, then the mention didn't actually parse even if you see the mention in the message
chilly siloBOT
chilly siloBOT
#

Description

Hi, please remove that annoying free space right under the msg input bar. It drives me crazy while scrolling.

Thank you!

Steps to Reproduce

scroll the chat area

Expected Behavior

non free space line

Current Behavior

free space line

Screenshots/Videos

20240925_233210

Client and System Information

discord mobile client on samsung galaxy tab s9 ultra

chilly siloBOT
#
  • Do you have the role you're mentioning? If so, is the message highlighted yellow for you? If not, then the mention didn't actually parse even if you see the mention in the message

The role exists and i only removed it's unique ID, to post the code. It is colored. "content" is is posted as expected, It does not matter, if i have the role or not, even if i post the time or "Hello Discord" (without any role string), if my status is offline or online, the presence of "allowed_mentions" doe...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

I've developed an idea that I think could add value to the Discord platform.

The idea is to be able to mention a person from another server so that you can share someone you like, get a notification when you mention them etc., and I think it could fit in seamlessly with the current Discord ecosystem.

To give you a first idea without giving away all the details, I've included a sample demo video in this email. If you find the idea interesting, I'd be delighted to discuss it in more detai...

chilly siloBOT
#

I personally think this is a great idea. I would love nothing more than to develop a script that makes 100 servers with 50 channels each, and then uses 150,000 bots to @mention literally anyone I wanted. Right now you can only spam friend requests from bots, but this revolutionary idea removes the ridiculous constraint that I need to be in a shared server with a user in order to deliver a notification directly to all of their devices at the message create rate limit. Let's make it happen!

...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Yes, but there will only be a reference to the person, for example: You have been mentioned in the server ‘Server Name’.

What use-case(s) is there for receiving a notification that you have been mentioned in a Server you are not a member of?
There's nothing you can really do in reaction to such a notification, given how you have no context for why you were mentioned and (in the case of non-Discoverable Servers) you can't just join via the notification, so it seems pointless to eve...

chilly siloBOT
chilly siloBOT
#

Description

heyya. since yesterday, my users cant auth with discord anymore, if they are below ios 16.x (all users that reports the error are on 15.x but not on 16 or higher) it works everywhere else. they just get stuck on a white page on the /oauth2/ url.

managed to get ios simulator running on my mac, and could reproduce the same thing with the simulator there. Console log gives those errors:

https://imgur.com/undFDUZ

Here is my oauth2 link, but you can even go as far as r...

chilly siloBOT
#

my last feature drop :)

interaction_metadata can now have target_user or target_message_id for context menu command messages. message command messages will also have message_reference and referenced_messages.

there are also other fields that are marked as private, like command_type. maybe those should be marked as public and then documented

I also split up the interaction metadata object into the different structures to reflect how it is stored internally and the API spec. ...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Would be great to have the ability for users to grant webcam access in activities. I do not think it should be something automatic (if a user is in a voice chat on camera) - it would need to be an explicit prompt for permission as is done on websites:

image

There are many different use-cases for Activities to use webcams:

  • Podcasts
  • Filters
  • Games

In some cases this could even allow some applica...

chilly siloBOT
#

Description

Now, if a member has perms to enable activities in a voice chat, but does not have perms to send messages in this chat, the activity will not start
Because now /Launch is sent when the activity starts

Steps to Reproduce

  1. Join to the voice chat, where you have permissions to start activities (but no perms to send messages)
  2. Start any activity.

Expected Behavior

I think the right solution here would be to start the activity without sending a message to the cha...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

According to the changelog on, 22 January 2021 you require admin permissions or MANAGE_ROLES in the channel before you're able to set the MANAGE_ROLE permission.

But if you have another unrelated channel/category with the MANAGE_ROLE enabled, you're able to create a separate unrelated category/channel with the MANAGE_ROLE permission overwrites.

Permission overwrites in the guild channel creation endpoint are now validated against the permissions your bot has...

chilly siloBOT
#

When developing an app meant to support several different Discord API implementations, sometimes on different versions, it would be very useful to be able to easily find the software you're working with and its version.

Describe the solution you'd like

It'd be very useful to add a new route along the lines of /version, which just returns the current server software version for the guilds server and the fact that it's the discord.com server:

{
  "version": "v12.13",
  "s...
chilly siloBOT
chilly siloBOT
#

did you receive a number of 4XX status codes in those 10 minutes? multiple 4XX errors in a small timespan can lead to this sort of rate limiting

we will not be documenting the rate limits associated with endpoints, please consult this documentation https://discord.com/developers/docs/topics/rate-limits#exceeding-a-rate-limit

As you mentioned, the provided documentation covers Cloudflare rate limits, typically triggered by invalid HTTP status codes like 4XX.

However, the current inv...

chilly siloBOT
#

. I personally think the issue is a combination of the large payload and the large guild count. On my dev bot, Discord takes ~5 seconds to respond. On the prod bot, Discord takes significantly longer. This is just a hunch though.

I will look into the code to see how we handle registration

It's affecting our bot's startup time by 1-30 minutes due to the bot constantly having to restart from the 504's.

Frankly, you should move your registration to a different point in the lifecycle...

#

I will look into the code to see how we handle registration

Thanks, I appreciate that.

Frankly, you should move your registration to a different point in the lifecycle of your app if it causes your app to crash if this request fails.

You're right, and since posting this comment, I have. However it's not restarting the bot or doing setup logic that takes up 80% of the waiting time here.

chilly siloBOT
chilly siloBOT
#

Description

When a guild is set as a community server and has at least one stage channel, changing the voice region to certain locations results in the voice channel being rerouted to different regions. This issue occurs with the following regions:

hongkong → rerouted to Singapore
india → rerouted to Singapore
sydney → rerouted to US-West
south-korea → rerouted to Japan

However, when the stage channel is removed or doesn't exist in the guild, the voice region functions a...

chilly siloBOT
chilly siloBOT
#

This is technically a partial non-issue because all it breaks is fetching the application, whether that be a client opening the profile or bots going through presences.

This presence comes from internally dispatching a presence through the client via client mods, as also evident by the fact the large_image key points to an attachment, whereas the RPC will always convert links passed through to the external route of media proxy.

Clientside validation is done, but only for presences...

chilly siloBOT
#

per presence update docs:

no fields are required, and the types of the fields are not validated. Your client should expect any combination of fields and types within this event.

since snowflakes are internally stored and processed as numbers, and only converted to strings if they are over the max int, there are unfortunately various cases where small number snowflakes are serialized as numbers instead as strings.

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

I was wondering if there is already an example of how to connect github and discord for threaded reply in discussions.

Specifically, discord has the forum post style channel, which is structured the same as github discussions. I.E. single post, replies in a thread.

I am looking to have:

  1. when a github discussion is created, discord creates the title and body as the post type.
  2. when a reply is made in github discussions, it is displayed in the discord post
  3. when a reply is m...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

My old discord bot had slash command, it was working and could be used. But I created a new bot, in the same codes I only made the token of the new bot in the token section. But slash command was not detected in the new bot, it did not work and cannot be used! What is the reason for this? Can it be fixed? What should I do to fix it?
id: 1291735752778059826

Steps to Reproduce

.

Expected Behavior

The new bot has a "Supports commands" badge and the slash commands I ...

chilly siloBOT
chilly siloBOT
#

Description

for poll result (POLL_RESULT) system messages that Discord sends in a server, message_reference is missing guild_id field that includes ID of the server/guild.

Steps to Reproduce

  1. Create/start a poll inside a server/guild.
  2. Wait for it to finish/close and for POLL_RESULT message to appear in channel by Discord.
  3. Inspect the raw message payload of said POLL_RESULT message (fetch it from API if needed)
  4. Check message_reference field and its contents.
  5. ...
chilly siloBOT
#

Description

When removing or adding a role to a member by a bot, it used to generate an audit log event. It does not seems to do it anymore

Steps to Reproduce

Do api call to add/remove a role from a member

Expected Behavior

Audit log is generated for the role change by the bot

Current Behavior

No audit log is generated

Screenshots/Videos

No response

Client and System Information

Using Discord window 11 client

chilly siloBOT
#

Description

This is on the Desktop Client only, specifically in the app store. If you select an app that has subscriptions/store, and you click the subscription, it says at the bottom:
"This developer has not setup terms of service and privacy policy."
This cannot ever be the case, because to be listed your app must be approved, and therefore must have a terms of service and privacy policy listed.
If you visit the same app on Web, it correctly shows both hyperlinked.

For referenc...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

The data shown in the Growth & Activation tab is not representative of the selected period.

Steps to Reproduce

  • Go to the Growth & Activation tab
  • Select the longest period you can and set it to display in weekly format (it doesn't work in any format: daily, weekly, and monthly)

Expected Behavior

  • It should show at least more that only 3 weeks

Current Behavior

  • It only shows 3 weeks

Screenshots/Videos

![image](https://github.com/user-attachments/a...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

I seem to have uncovered either a neat bug or feature that I'm trying to understand why it exists.

tl;dr my app connecting to the RPC websocket after more than two attempts will result in an extended delay for getting events back on stable.

This doesn't seem to happen for your app streamkit at all on stable. Furthermore, on canary this does not happen to my app and every connection is free of any delay in receiving events.

This really messes with auth flow for my a...

chilly siloBOT
chilly siloBOT
#

Updates to the entitlement migration guide:

  • The migration will run through November 1, 2024 to ensure that any entitlements that are set to renew in October will be properly migrated to the new entitlement system upon renewal.
  • ENTITLEMENT_UPDATE events will only occur when a subscription ends.
  • The value of the ends_at in ENTITLEMENT_UPDATE events indicate the timestamp for when the entitlement is no longer valid.
  • The ends_at value on the entitlement object is set wh...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

As a workaround for now, the PATCH /guilds/:id/members/:id still produces results in audit logs so editing the roles array through that rather than the single add/remove endpoints will allow you to change roles with audit log entries

My bot uses this endpoint for any role changes and has not been impacted by this issue but if I try the single ones, I get the same result

chilly siloBOT
#

I can also confirm, my bot used to give roles based on other roles, but without this my bot doesnt know when roles are added

You should probably do this from role update events anyway, since those are a free permission and audit log access is not

By detecting role change with audit log, you are able to process the changes in order they occured. Which is needed for my bot. Also, you can know what is the last role change you process. So if the bot loses connection or is doing, you...

chilly siloBOT
chilly siloBOT
#

Dear Discord Team,

I hope this message finds you well! I’m writing to suggest two features that would greatly improve our experience during group sessions, especially for educational purposes:

1 - Audio Message Editing: It would be fantastic to have an option to edit text messages by resending them as audio messages. This feature would provide more flexibility in communication, allowing users to clarify or expand on their text content with voice – especially useful in dynamic environmen...

chilly siloBOT
#

Description

I recently aded a new app to my discord server which manages user roles, however ever since adding this new bot, whenever one of my other apps adds or removes a user's role, I am no longer receiving audit logs for these changes.

Audit logs for Users making changes to roles are however being logged, and all other logging actions are being created without issue.

Steps to Reproduce

  1. Invite New App
  2. An alternative app updates a user role
  3. Audit logs not bei...
chilly siloBOT
chilly siloBOT
#

Description

When using a slash command with an autocomplete option, if a user starts typing and selects an option, but then switches channels or creates a new channel before sending the command, the selected autocomplete value becomes invalid. Instead of sending the expected value to the bot, the command sends null, causing the command to fail.

Steps to Reproduce

  1. Begin typing a slash command that includes autocomplete options.
  2. Select one of the provided autocomplete values...
chilly siloBOT
#

@champymarty Possibly the fastest way is if someone that's a "Discord Tester" and in their official server (as joining is closed), can submit a bug report that will get the eyes off a staff member. So if you know someone or someone who knows someone, that's likely to be the fastest way besides the normal route of discord bug report emails (which is really slow).

https://support.discord.com/hc/en-us/articles/360046057772-Discord-Bugs

<img width="636" alt="Screenshot 2024-10-11 at 3 29 51...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

When I try to enable the “embedded app” in an application that belongs to a team (I have the role of “Developer”), I get the error “[Object Object]” on my screen, which indicates a lack of treatment of this error.
image
testing the click of the button while looking at the console, I notice that the return from this button is:
`(x) POST https://discord.com/api/v9/applications/1076950766515...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Right now, all commands of all types are sent as one big list to the bulk update endpoint. This becomes problematic when new types are added that a library doesn't support. In that case, the library will simply delete all of these commands unknowingly, resulting in unexpected footguns.

This has re-appeared recently with the new entry point command types 4, resulting in this band-aid error:

50240: You cannot remove this app's Entry Point command in a bulk update operation. Please ...
#

Recently, a new error was introduced for the bulk update commands endpoint:

50240: You cannot remove this app's Entry Point command in a bulk update operation. Please include the Entry Point command in your update request or delete it separately.

This error, however, is not helpful for developers who are just starting out and only know the API through high level abstraction with libraries.

A developer might accidentally enable activities on their application, which automatically ge...

chilly siloBOT
#

Description

From a quick check:

  • Pages are missing h1 elements
  • Inputs with no labels
  • No lang attribute on the document (breaking translation, hyphen algorithms, etc.)
  • The logo link has no aria label and is marked as aria-current for every page
  • User menu button in the top right has no aria label
  • Many orphaned elements that have no functional value and should be replaced with
  • Nav is not marked as nav

Also, the activity settings page has way too much upp...

chilly siloBOT
chilly siloBOT
#

I'd be inclined to say this should be an array of { type: CommandType, commands: Command[] } rather than an object. This is more flexible and probably easier to implement?

for (const commandSet of commandSets) {
  sql(`DELETE FROM Commands WHERE Type = ${commandSet.type};`);
  const commandsAsValues = commandSet.commands.map(command => `(${command.type}, ${command.name})`).join(',');
  sql(`INSERT INTO Commands (Type, Name /* etc... */) VALUES ${commandsAsValues};`);
}

O...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

when you try to encapsulate the sdk connection logic in a context hook using nextjs, the sdk for some reason will always return an “invalid client id” error when trying to authorize the user with discordSdk.commands.authorize({...}).
I tested the same code with vite, and it worked normally, I had no problems encapsulating the logic, but specifically with nextjs, the SDK always crashes in this part.

Steps to Reproduce

perform the same SDK creation steps as in the docu...

chilly siloBOT
#

Description

Using this link
https://discord.com/oauth2/authorize?client_id=*&response_type=code&redirect_uri*&scope=identify+dm_channels.messages.write
i got The requested scope is invalid unknown or malformed error
What i want to implement, i need identify scope for getting user id, storing it on my database, and after send messages, but i can't

Steps to Reproduce

Go to https://discord.com/developers/applications, and create oauth link with identify+dm_channels.messages.wri...

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

another thing to try - it's possible that if certain steps in the handshake protocol are duplicated, the RPC connection will shut off as an error response. you'd get a Close event on your side if this happens, could you add some logging and see if that's what's going on?
probably it is, I've set the auth code to log, and in the console I see the code, but on my screen I see the error, which indicates that there are two versions being rendered, because soon afterwards in the console a versi...

chilly siloBOT
#

another thing to try - it's possible that if certain steps in the handshake protocol are duplicated, the RPC connection will shut off as an error response. you'd get a Close event on your side if this happens, could you add some logging and see if that's what's going on?

that's it, i just tested it, in nextjs the component is rendered twice, once on the client and once on the server, even if you have strict mode disabled. passing the logic to an asynchronous function that will be called ...

chilly siloBOT
chilly siloBOT
#

Whether or not the error message gets updated, I would like to see this user-agent requirement added to public documentation (if it isn't already) if it is here to stay. I encountered this issue, and it was tricky to identify. I hadn't considered that my PowerShell script was automatically supplying a user agent header containing "Mozilla" even when I didn't specify one - so it was not obvious at first what "40333 - internal network error" was trying to tell me. Thank you for your consideration!

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

Description

Whenever I respond to an interaction URL request with a defer, it goes through as normal, and Discord says that the "Application is thinking". However at random occurrence, whenever I wish to reply with /webhooks/:app_id/:followup_token, it would tell me that the webhook is not there (404). After making my script retry for 2-3 times in a span of ~10 seconds, it finally registers that it can reply and gets a HTTP 200 request.

Steps to Reproduce

  • Use Interaction URL ...
chilly siloBOT
chilly siloBOT
#

When replying to an HTTP response, there is no guarantee that Discord has received the response that you sent before it received your request for a follow up.

Even if the client is saying that "Application is thinking", intentionally waiting 2 seconds before sending a followup, yet still getting a HTTP 404? Just asking since it feels a bit strange where the client shows that the API has accepted my defer response, yet followup token is unavailable at some random points, for a duration of...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

Hello!

I'm trying to use itch.io to host my game while creating a Discord activity from that site. The URL for my game on itch.io is:

https://html-classic.itch.zone/html/11707741/dist/index.html

So, I tried adding that as the root URL mapping in my Discord activity and got a Google Cloud 403 error.

After some investigation, I think I've found the issue. It looks like when that root url is used to construct the full url,there is a string of information attached tha...

chilly siloBOT
#

Lately I've experienced some waste of bandwidth (even considering compression) through receiving messages from guilds/channels marked as muted and it can become very intense if those guilds have a lot of members hence a lot of messages being sent and received so I was thinking why isn't there something to like prevent discord gateway to send messages of muted channels considering that it could be beneficial for clients and servers.
For example it could be implemented as /channels/{channel.id...

chilly siloBOT
#

I've been working on a bot which collects a small amount of non personally identifying information about users when they're in a server. (a leveling bot). However, I want to be able to remove their data when they leave servers owned by the bot, and I can't do that without an intent that gives me a bunch more access that I really would rather not have. Would it be possible to separate out this privileged intent, or make it an unprivileged intent?

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

I believe it’s probably because the Websocket RPC API is technically accessible to any website.

You can try to connect from any website but the RPC server has strict origin checks so if you are not connecting from an allowed rpc_origin you'll get a INVALID_ORIGIN = 4008 error.

Maybe there is something else I'm not accounting 🤔.

chilly siloBOT
#

Description

There is a problem with the Discord API, creating a new slash command does not work on bots where the / commands were created today it does not work. This makes it impossible to make a new command in/or in prefix due to a problem with the API. The slash commands of the old forward hosting bots work well but on the new ones they don't. I noticed this with two other friends, they code in java script, I code in python, our code is good it can only come from the API

Steps to...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

+1

I am also wondering about this question.

My application is a very UI-based app that would allow users to read/write information that affects their managed guilds. In order to do this, I need to frequently check whether the user has admin privileges on the specific guild.

It seems strange to have to use the /users/@me/guilds endpoint and loop through all the guilds to find permissions each time I want to do this. It makes me feel like I am doing something wrong, or using the API ...

chilly siloBOT
#

Description

The "Manage SKUs" button in the Manage Store page of the Discord Developer portal contains an incorrect href. It currently redirects to /applications//skus, but it should redirect to /developers/applications//skus.

Steps to Reproduce

  1. Go to the Discord Developer portal.
  2. Navigate to the Manage Store page for any application.
  3. Click on the "Manage SKUs" button.
  4. Observe the URL it tries to redirect to.

Expected Behavior

The "Manage SKUs" button shoul...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Talking this through with the team, we wont be making changes to the behavior here as modifying a public deferred message into an ephemeral message isn't possible.

We do have a couple options for what we recommend you do to handle these kinds of errors as this can pop up in more situations than just this one. You should be able to delete this public deferred message yourself. After that, you can choose to either DM the user or just send a follow up response which will be forced ephemeral a...

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

Description

Up until earlier this year, when twitch clip links were sent on Discord, every link had the video player embedded to play within Discord itself.

However, earlier this year, I began noticing most twitch clip links now do not embed the video player within Discord. Instead, it now takes you to the external (twitch) webpage to view it.

On rare occasions, the twitch clip link will embed the video within Discord. I can't find any reproducable pattern to make it work. It ...

#

Description

While using a slash command with a command option that has autocompleted choices, a "Not a valid value" client-side validation error appears when submitting with a custom value.

Steps to Reproduce

  • Enter a slash command
  • Type a custom value into a command option that has auto-completed choices
  • Send the slash command.

Expected Behavior

The slash command to send as normal, with no validation errors.

Current Behavior

A "Not a valid value" client-side val...

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

Description

All my embeds with attached images stopped working on my servers

Steps to Reproduce

Expected Behavior

I expect the embed to display ima...

chilly siloBOT
chilly siloBOT
#

Description

Normally, you can prevent links from embedding in Discord via `` (adding <> before and after the link).

Though, the new oauth embeds for apps do not respect that, and keep displaying even when wrapped into the brackets.

Steps to Reproduce

Send the following text anywhere:
``

Expected Behavior

No embed should be shown

Current Behavior

The oauth/app embed shows and doesn’t hide

Screenshots/Videos

![IMG_2043](https://github.com/user-attachments/as...

chilly siloBOT
chilly siloBOT
#

Description

If 2 users(let's call them User A and User B) logged in to a PC and both has discord running then discord launched last (for example it would be User B) fail to open IPC and WS servers for RPC (address is already in use). Moreover all apps launched on User B session will connect to User A discord client and will be able change Presence, request OAuth. And most dangerous intercept RPC requests from web invite resolver. So if user B click on an invite link in a browser popup ...

chilly siloBOT
chilly siloBOT
#

Description

Orignally posted to ddevs but figured I will resend here in case it gets lost to chat history: #1299467745737576508 message

It seems like the integration_type (according to the description) is supposed to be either 0 or 1 based on the installation context, but the field is listed as optional. Its possible there is an intended reason for this but us in the thread couldn't come up with an answer so I'm creating...

chilly siloBOT
#

Description

According to Discord, 429 that are caused by buckets should NOT cause a Cloudflare ban, however, this does NOT apply to rate limits caused by follow up messages.

Steps to Reproduce

  1. Create a button that defers a reply/edit + send a follow up message
  2. Ask a bunch of users to spam the button

Expected Behavior

Discord will rate limit the bot based on the current interaction channel, the ratelimit is a shared rate limit

Current Behavior

Discord rate limits ...

chilly siloBOT
#

Small clarification because I posted this a bit in a rush: the REAL issue is that Discord does not document about this special rate limit behavior for interaction follow ups, so no library does handle rate limits for interactions correctly, and Discord afaik does not provide Rate Limit information headers for this kind of rate limit.

So libraries just send the request and get hit with 429, and because there isn’t any major parameters on the interaction route (aside from the interaction tok...

chilly siloBOT
#

Although I also would love to have that, I never had any issues with my module. And it doesn't care, when the bot joins, or how long he was offline. With the cache_invites() method, he builds his cache with every existing invite. Works like a charm on my own small server.
Maybe someone will find this useful.
https://github.com/Serpensin/CustomModules/blob/master/InviteTracker/InviteTracker.py

chilly siloBOT
#

Right now when you click on an “APP” message from a webhook, the profile widget that pops up only shows the webhook display name. It would be very useful to be able to provide a bio text, like for ordinary user profiles:

  • This could make webhooks less confusing. The display name already provides some information, but a more detailed description of “what am I looking at” could go in the “bio”.
  • For particular applications, it would be especially useful to be able to set the bio on a per-...
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Had a button that would edit the message to show the current amount of users in a giveaway on the button itself, but also sending a followup response after to confirm your entry. Discord API eventually CloudFlare banned the bot after +10k users clicked a single button in a span of 20 minutes, however I was able to use any other endpoints that the API provides. My bot was fundementally fine, but was unable to send any followup responses for the next ~1 hour.

TLDR; CloudFlare banned yes, but...

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

I needed the same (list of IPs or ASN) for my firewall configuration. Only thing you can “rely” on is the User-Agent; though note that the User-Agent isn’t provided when Discord’s proxy fetches your open graph images.

Possible solution would be to whitelist the Google Cloud ASN which Discord uses, but that also ain’t the best method, but it works fine for me.

chilly siloBOT
#

Once you do anything remotely useful with WAF you will lose the expression UI. And yeah Discord should really provide documented solutions for all of this, because this ASN/CF-Worker juggling just asks for it to break.

I personally don’t serve videos or anything so I never played with that, the ASN “fix” works pretty good for the meta tags and open graph images though.

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

I'm having the same issue. It's a bit crazy that there's not even a message that gets displayed. That should literally take like less than an hour to code into the product instead of just randomly deleting the app. I just wasted an hour trying to figure out what was going on because of the lack of a simple message.

I was hoping to create a custom app but now I'm not even sure if I want to waste any more time on this.

chilly siloBOT
chilly siloBOT
#

Description

Hello. For some time now, some members of my community and I have noticed a problem with screen sharing.
When you activate screen sharing and then switch to a game window, the microphone and the voice of the person sharing are no longer active because the discord window is no longer in the foreground.
I thought it was a bug that would have been fixed but that's not the case. For information, this bug is present on Android while on Apple and PC everything works correctly. Is...

chilly siloBOT
chilly siloBOT
#

Hey, just commenting to see if there was any followup (no pun intended) to this issue. I still get HTTP 404 errors regardless of how much delay I add on top of the response, after the Discord client does in fact show that they have processed the response I gave and have triggered a "Application is thinking..." response to the client.

Have tried to delay the followup response all from 0.5 second to 5 seconds with the same outcome in all of them:

  • "Unknown webhook (HTTP 404)" on all 5 t...
chilly siloBOT
chilly siloBOT
#

Description

As title says, the invites that expires after specified time, bots does not trigger any InviteDelete event.

Steps to Reproduce

Create an invite with 30 minutes age, and wait for it to expire.

Expected Behavior

After invite expires, it will deleted from server, so the InviteDelete event should be emited.

Current Behavior

After invite expires, it is deleted from server. But the InviteDelete event did not emit.

Screenshots/Videos

No response

Client...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

The Get User Voice State route does not list the needed permissions to use the route, but we are getting a Missing Access (50001) error when trying to use the route.

Steps to Reproduce

This occurs on random guilds, and we have been unable to track down exactly what the needed permission is
The most recent one was `https://discord.com/api/v10/guilds/1162866772320465047/voice-states/4488931869419...

chilly siloBOT
#

Same thing happens here, this is very weird. I tried different names, different browsers, every time I created an app go to the bot section to get the token it shows "unknown application", and I have to refresh, once refreshed, the whole app is gone and I have to recreate one and every changes I make it is the same thing - "unknown application" - app gone, nothing is working, this is getting frustrating.

chilly siloBOT
#

Description

If neither channel nor guild allows users to use external emoji, but a user with permission to executes a user-installed command, app_permissions value indicates the application has permission to embed emoji—when it can't.

Steps to Reproduce

  1. Create a guild.
  2. Ensure "Use External Emoji" in everyone role is disabled.
  3. Ensure "Use External Emoji" in #general channel is set to deny.
  4. With a test user, join the server.
  5. Set test user's permission for "Us...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

NSFW user app commands can be run in DMs of users who have the setting "allow access to age restricted commands from apps in direct messages" turned off, this includes non friends, no previous message history and accounts belonging to minors from my limited testing.

Steps to Reproduce

Run a NSFW user app slash command in dms

Expected Behavior

Expect NSFW user app commands to not be shown and or return error if ran in DMs of users who have the setting toggled off a...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

Whenever my bot attempts to create a new entry to audit logs that includes Russian characters, Discord breaks it and shows gibberish instead of what was in reality sent.

Tested

  • HTTP PUT /guilds/:GUILD_ID/members/:MEMBER_ID/roles/:ROLE_ID
  • HTTP DELETE /guilds/:GUILD_ID/members/:MEMBER_ID/roles/:ROLE_ID

Tools used

  • Curl
  • Python: aiohttp / requests
  • Insomnia (Windows)

It might be possible that it breaks on more endpoints, but role add/remove is where ...

chilly siloBOT
#

Hi, I'm experiencing a 401 Unauthorized error when trying to use the DELETE /users/@me/guilds/:guild_id endpoint to have a user leave a guild.

Here are the details:

  • I’m using the following scopes: identify, email, guilds, and guilds.join.
  • The access token works fine for other user-specific actions, so it seems valid.

Is there an additional scope or permission required specifically for a user to leave a guild? Or could there be another reason for the 401 error in this case?

...

chilly siloBOT
#

Still happening to me (I'm using latest discord.js). When my bot sends the embed, the image shortly shows as a grey square, then disappears (size being set to 0x0 I assume). But if I send the image url in the chat, discord will embed it like normal. The kicker is that if I then make my bot send the embed again, the image shows!

This might be a timeout issue on my end though, I am sending 5 embeds with one image each. The images take about 1.5 (each) seconds to load, so maybe it...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Hey @Gideon-Foxo!

The "allow access to age restricted commands from apps in direct messages" user setting is actually working as intended, albeit the the wording can be confusing. This setting applies to whether you can view/access NSFW commands you have installed; it doesn't prevent others for sending to them to you. The description below the setting makes this a little clearer ("Allows people 18+ to access commands marked as age-restricted in DMs").

If you’d like to stop others fr...

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

Description

The documentation for Entry Point commands is at the moment not clear about how to set the handler field for the given command. Example payloads include the field, but it is not documented under the Create/Edit Global Application Command endpoints.

Steps to Reproduce

Navigate either to documentation for [Creating](https://discord.com/developers/docs/interactions/applic...

#

We do have some support for deep linking that page, however, depending on the type of OAuth flow you're trying to do, we intentionally don't deep link it. For our special OAuth flows that add apps to your server or account (the bot and applications.commands scopes), those can and are deep linked. If you're seeing that these types of flows aren't being deep linked, please open an issue on the docs repo here so we can take a look.

For any actual OAuth flows used to grant access to your...

chilly siloBOT
chilly siloBOT
#

We are a gaming company, and we are currently working on integrating Discord login for our players. Ideally, we would like players to be able to click the Discord login button on our login page, which would then open the Discord client. After completing the authorization, we would receive the player's information. If deep linking is not supported, players would need to enter their credentials, which is quite cumbersome. Could you please provide any recommendations or solutions for this scenario?

chilly siloBOT
#

Description

When someone subscribes to your Twitch channel, the audit log shows that sometimes the Twitch integration assigns the roles to the member, and in other occasions it's the member who gives themselves the role.

Server ID: 285010674667749376

Steps to Reproduce

  1. Connect Twitch integration to your server
  2. Make good content and have people sub to your channel

Expected Behavior

Roles always appear granted by the Twitch integration

Current Behavior

Sometimes...

chilly siloBOT
chilly siloBOT
#

Description

account uthentication failed, After updating authorization, it can be restored, but after a period of time, the generated image will be restored Closed by 4003(Not authenticated.)

Steps to Reproduce

image operations probability of occurrence Closed by 4003(Not authenticated.)

Expected Behavior

Successfully generated image

Current Behavior

Closed by 4003(Not authenticated.)

Screenshots/Videos

No response

Client and System Information

use librar...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Hi @DV8FromTheWorld!

We have reason to believe the fix for this caused a regression in forum threads being created via webhooks.

After roughly a year of stability, we began experiencing this issue right around the time the fix was deployed, with nothing changing on our end.

A similar issue can be found here: https://github.com/discord/discord-api-docs/issues/6839

Pretty much on a daily basis over the last two weeks, and not once before, we now have a forum message posts where the ...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

I am unable to type or paste text in the summary box of Discovery Settings for my app on the Discord Developer Portal. When I click into the summary field, the text cursor does not appear, and I am unable to input any characters. Refreshing and other troubleshooting methods have not resolved this issue.
image

Steps to Reproduce

  1. Go to the [Discord Developer Portal](https://discord.c...
chilly siloBOT
chilly siloBOT
#

Description

Withe the problem is backgrounds team form mixigaming

Steps to Reproduce

Provide clear and concise steps for us to relibbly relibly this issue

Expected Behavior

Stared 2 more collaborator approval(s) required

Current Behavior

Seeing instead to form Vietnamese

Screenshots/Videos

Testing for in the sorues and videos file in the abvoe

Client and System Information

Client To Form Background Develepor

chilly siloBOT
#

Description

According to the monetisation guide, ends_at is nullable: https://discord.com/developers/docs/monetization/implementing-app-subscriptions#how-app-subscriptions-work

However, it does not appear to be documented as such:
https://discord.com/developers/docs/resources/entitlement#entitlement-object-entitlement-structure

Steps to Reproduce

N/A

Expected Behavior

ends_at to be documented as nullable.

Current Behavior

ends_at is not documented as nullable....

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

Edit the return type for openExternalLink. With this change the result of openExternalLink will be an object containing a boolean value opened.

If opened is true, then the link was opened by the user
If opened is false, then the link was not opened by the user

The lifetime of the promise is also changed. Previously the promise completed after opening the "Leaving Discord" dialog, but with this change the promise completes after the user selects an action in the dialog (visit...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Update for those affected - there are two separate issues at play.

  1. Last week we had an incident that caused unintentional deletion of a subset of apps. For most accounts, this should be resolved.
  2. For a smaller percentage of users - we are still working on surfacing errors when we delete apps intentionally. Usually this is related to scripting of app creation, account status/age, etc.

We're not fully resolved yet, but we're still working here. Thanks for bearing with us ❤️

chilly siloBOT
chilly siloBOT
#

Description

I think there might still be something wrong with the API server. My bot is attempting to DM users and randomly failing with Missing Access. There does not seem to be any difference or pattern to when these fail or succeed, and this is an issue I have only started seeing after the API outage earlier today. The bot was working fine before with no issues for about a month, and it's code has not been touched.

Steps to Reproduce

Attempt to DM a User

Expected Behavior

...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

I noticed gif urls stopped animating if theres anything appended after the .gif

Works: https://cdn.discordapp.com/emojis/1133494076164014271.gif

Doesn't work: https://cdn.discordapp.com/emojis/1133494076164014271.gif?size=240&quality=lossless

This seems to have just happened in the past week or so. I noticed some of my gifs in my favorites weren't animated anymore.

Steps to Reproduce

Copy the link of an animated emoji, and post it in the chat.

Expe...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Hello, I recently encountered this issue as well.

My application is a bot that periodically posts messages, sending embeds with external image URLs to different server channels simultaneously using @discordjs/rest.

Below is the embeds portion from the message data I retrieved using GET /channels/{channel.id}/messages/{message.id}

{
    "embeds": [
        {
            "type": "rich",
            "url": "https://tw.toram.jp/information/detail/?information_id=9542",
...
chilly siloBOT
#

Description

This could be deliberate, but given that min_length can be set to 0, this seems like a bug.

Slash Command string options, with required set to True and min_length set to 0, require a value to be specified, even though min_length is 0

Steps to Reproduce

Create a Slash Command, with a string option, with required set to True and min_length set to 0

example json

{
    "type": 1,
    "name": "send",
    "description": "send a message",
    "o...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

We've deployed a fix to production that should correct this for new links not already cached at the CDN. Any additional follow-up will be reported here. I'll keep this issue open while we continue to verify the fix.

Thanks again for the report @pkdev08 !

No problem! There's one other thing I noticed and I'm not sure if its related but, if you try to copy the link of an animated emoji, its now an .webp instead of .gif. I'm not sure if that's expected behavior or not. If you wan...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

the api has been reacting poorly in the last 3ish hours messages not gettgin sned properly image sonot getting louded or not correctly videos not playing correctly

Steps to Reproduce

uh just observrve i guess?

Expected Behavior

normla behavoir hwennavgating channels/server and sending messages seeing images/videos

Current Behavior

lag in opeignig nchannels
messages not gettgin sned or too late when there is an peak in api response time
image snot loadi...

chilly siloBOT
#

Hello, I recently encountered this issue as well.

My application is a bot that periodically posts messages, sending embeds with external image URLs to different server channels simultaneously using @discordjs/rest.
...

Update:
Even when I download the image and upload it as an attachment, I have the same problem.

"embeds": [
    {
        "type": "rich",
        "url": "https://tw.toram.jp/information/detail/?information_id=9559#s3",
        "title": "...",
  ...
chilly siloBOT
#

We’ve been working on implementing SKUs in our Discord bot, and here are a few features we’d love to see added to enhance the system:

Coupon System

It would be fantastic if we could create custom coupon codes that provide discounts for specific products. These could be managed via the Developer Portal or through the API, allowing for greater flexibility. Here are some key functionalities we envision:

  • Coupon Code: A unique code that users can input in the "Buy Subscriptio...
chilly siloBOT
#

Description

Use this command if the message is too long and it will not read properly

Steps to Reproduce

Pasting a long message will trigger it (about 1,000 words or more)

Expected Behavior

Normally, it should be read normally. If not, an unreadable notification should be sent, just like the upper limit of the message is 2000 words!

Current Behavior

It will only read what the user said...(no sound in the second half)

Screenshots/Videos

https://cdn.discordapp.com/a...

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

Description

Just passed that tutorial and found several missing instructions:

  • there is no mention that at step 3 you have to add InteractionResponseFlags, MessageComponentTypes to list of the entities being imported from discord-interactions and ButtonStyleTypes at step 4.
  • no mention that you have to extract id from request body. You have to add id to the following list const { type, id, data } = req.body;
  • no mention to add const activeGames = {}; to declare games ...
chilly siloBOT
#

Description

Content-Type is a required header (and must be application/json) for new http interaction endpoint to successfully validate. It seems this requirement is not documented (any more). While most http libraries will automatically set this for you (especially if it has a helper function for json that will serialize for you), not all do.

Original announcement: #api-announcements message

Steps to Reproduce

Check to ...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

My app currently uses the Identity Oauth scope to authenticate a user's Discord account. I'm wondering if there is a way to create a discord dm between my Discord bot and the user. I'd like to do this to reduce rate limits for my Discord bot since we do get a lot of traffic. Just to be clear, I don't want to send dms using the claim. Just create the dm.

If this feature doesn't exist, I'd like to propose a specific scope just for dm creation.

Side note: How do I get approved for specifi...

chilly siloBOT
chilly siloBOT
#

Description

User app messages are meant to be treated the same as the user, following the same slowmode and automod rules etc.

This does not apply when the user gets banned with the "Delete messages from last X amount of time" option selected. This should also delete messages sent by the user app.

Scam bots have started abusing this behaviour to get around the delete messages feature, meaning moderators have to go channel by channel and manually delete the messages.

Steps to R...

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

Description

Server insights seems to be displaying completely random messages as published messages in announcement channels.

Have a look at the screenshot I've shown. None of the messages here are in an announcement channel, yet Discord states they are and that they are published messages. All these messages have reached a total of 0 servers (so it says). The guild id for this is 534940241002233896.

I tried fetching some of these messages via the API to see if there were any f...

chilly siloBOT
chilly siloBOT
#

Hello,

I’ve noticed that certain bots, such as MidJourney, can trigger an iframe modal through an interaction within the Discord app, which provides a highly interactive experience.

image

This feature would be incredibly beneficial for bots like my own, Wonderhoy, which allows users to create custom stickers. Currently, the lack of a live preview makes it difficult for users to align elements accurat...

chilly siloBOT
#

Afaik, MidJourney are the only ones with access to iFrame Models.

Personally, I'd rather have more supported components added to Models (such as Selects, Buttons/Toggles, File Upload, Plain-text labels, Image labels, etc) than abusable iFrames that could open a security risk*

* Granted, Custom Activities themselves are basically iFrames so who knows, maybe the major security concerns are already dealt with?

#

I agree with your point, but it’s worth noting that some of these components, like buttons, selects, and file uploads, already exist outside of modals. That said, for features involving visual editing, such as live previews or precise adjustments, a modal is often essential to provide the dedicated space and user experience needed for accurate customization. A well-implemented iframe modal could address this effectively, especially since the Discord Embedded App SDK already manages most secur...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Yeah, GET https://canary.discord.com/api/v10/applications/710982414301790216/rpc shows

{
	"id": "710982414301790216",
	"name": "Stickers",
	"icon": null,
	"description": "",
	"summary": "",
	"type": null,
	"is_monetized": false,
	"is_verified": false,
	"is_discoverable": false,
	"hook": true,
	"storefront_available": false,
	"integration_types_config": {
		"0": {}
	},
	"verify_key": "4be0b338ea2e6b55ca654be7d08534b99260888d08b7f2636cca1a962a5cd21b",
	"flags": 0
}
...
chilly siloBOT
#

I'm doing the Discord's Building your first Discord app guide. And during following the guide, I'm stuck on npm run register command returning the 401 Error.

After do some googling, I found this issue thread, and still not understand a thing. But, doing some console.log(process.env.APP_ID) debugging. I realized, you don't need the <> in <YOUR_APP_ID>.

In conclusion, the APP_ID and other variables in .env d...

chilly siloBOT
#

As suggested in the OP, it is already possible to receive arbitrary uploads from users by way of attachments with an application command option (type 11). However, whilst this feature was new when this thread was posted in 2022, it is certainly no longer the case. So the contention cannot be related to allowing user uploads, and it also cannot be related to feature infancy, so it is not clear to me the reason this has not yet been implemented...

chilly siloBOT
chilly siloBOT
#

I've tried to reproduce this numerous times and am unable to. It would really help if someone can put together a concrete reproduction, either with steps involving a brand new server (and users if necessary) or an existing server they're willing to give me some access to

I just tested it, it looks like it may have been fixed. I'll leave this open for now so others can confirm

chilly siloBOT
#

Description

Some channels are somehow still considered onboarding ones, which makes me unable to remove the "view channel" permission from @everyone for these channels. If I try to remove the "view channel" permission in the app, the switch just turns back on after I hit the "save changes" button. If I use an API, it gives me an error "400 Bad Request (error code: 350003): Onboarding channels must be readable by everyone".

Although I have disabled community mode for my server, "onboa...

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

Description

I want to report an inconsistency in how Discord handles slash commands in legacy chat input mode. To be clear: I'm not reporting that slash commands don't work in legacy mode (that's expected and documented). Instead, I've found that while Discord correctly prevents entering slash command input mode in two ways (by typing "/" or by clicking on command mentions), there's a third way that is...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Necro posting on this because it's the first search result for this issue and it was never properly explained anywhere else as far as I can see.

The reason the event is triggered twice is because bots will need to join the thread before they can send the message. Attempting to send a message to a thread that a bot is not currently in will cause the bot to join the thread, thus firing the event a second time.

chilly siloBOT
chilly siloBOT
#

Description

Teams have had a few role options available to members for awhile now - the description of Teams has not been updated to reflect this.

Steps to Reproduce

Navigate to https://discord.com/developers/teams and read the text immediately below the "Teams" heading.

Expected Behavior

Adjusting the wording of "Each team member has admin privileges for anything owned by that team, so only trusted individuals should be added." to reflect some level of permission configura...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

It still wasn't working for me a few weeks removed from that update, so documenting the solution I'm ashamed I didn't try earlier: creating an app from home worked fine, but I still can't make one from work on the same account. I noticed other websites don't like our traffic - something about either our school's public IP or internet filter. Creating the app from home and then doing modifications at work seems to be working fine though.

chilly siloBOT
chilly siloBOT