a36e811 Undocument deprecated empty string fields (#7114) - advaith1
#github-notifications
1 messages · Page 12 of 1
a2974be Top-level components are not necessarily action... - advaith1
looks like people were writing code that assumes that top-level components are always action rows, but that is not the case.
When are they not action rows?
currently all components bots can send need to be in action rows. however the new content inventory component (from the new activity cards feature) is not in an action row, and future display components for bot UIs will not use action rows.
This is a breaking change risk for a few libraries, including discord.py. I'm mentioning it here instead of Discord just so there's a paper trail for the statement. Whether the change is for the receiving end, the sending end, or both varies but either way this change can break things.
A bit less important library here, but this also completely breaks sending this component in my library, which pretty much hardcodes the action row requirement in the logic. On the receiving end it was annoying enough I provide an almost raw structure to the user, but most of my users also assume an action row always exists, completely breaking their code.
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!
Quick q about stickers
The docs mention that that field is deprecated. Should it even be documented for forwarded messages then?
yes, I believe that field is still included on older messages. A snapshot message is just a partial message object, and the list of included fields is subject to change, hence the "current".
Its necesary mention stickers based in how that field is supposed to be deprecated?
This project was removed from embedded-app-sdk-examples and now links to externally maintained repo (refer to https://github.com/discord/embedded-app-sdk-examples/pull/9)
- Support multiplayer & state management using the [React Colyseus](https://github.com/colyseus/discord-embedded-app-sdk) project
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.
Duplicate of #3577
Since it's been a feature request for 3 years now, I doubt it's going to get added/supported.
Duplicate of #3577
Since it's been a feature request for 3 years now, I doubt it's going to get added/supported.
Activities are now usable in text channels and there was a typo (interace), in the documentation of design patterns for activities.
It seems to be happening to me, too
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...
we're waiting discord.
modals aren't crazy and don't make me want to use them right now...
I hope they'll be improved...
Description
The word "characters" is misspelled on the Emojis tab of an application's page.
Steps to Reproduce
Simply observe the page.
Expected Behavior
That the word be spelled correctly.
Current Behavior
That the word is spelled incorrectly.
Screenshots/Videos
Client and System Information
Mozilla Firefox
Got a fix, should be out in the next few days.
looks like this got fixed two weeks ago
Great news, thanks for the quick response!
By the way, how can you mention a Tag?
Ya don't. Forum Tags aren't mentionable tmk. :)
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 ;).
I believe this has been fixed and rolled out. Thanks for the bug report!
c6688a7 fix links for colyseus project repo (#7117) - PrinceRajRoy
27def72 Activities are now available in text channels (... - lulu5239
3d0ecb2 fix interaction callback response link (#7107) - imnaiyar
c60b99c Add Amazon Music connection (#7095) - sebm253
7ed5387 remove non-support for custom ports (#7089) - afgiel
@Drylozu sorry for sitting on this for a bit! There's a merge conflict now ... if resolve it, happy to land the change.
@mobolo723 looks like this needs a npm run fix:tables :)
dcfda43 update links to embedded app sdk examples (#7097) - JustinBeckwith
714ad1d fix: windows doesn't like "<" (#7098) - Lulalaby
8bc883c Entry Point commands and Interactions updates (... - shaydewael
df75014 use explicit sidebar labels (#7094) - JustinBeckwith
da083e7 Update Receiving_and_Responding.mdx - shaydewael
092098f Add polls when editing deferred interaction res... - advaith1
745e014 Top-level components are not necessarily action... - advaith1
76fc733 Document linked roles message formatting (#7105) - imnaiyar
28c781d Clarify defer followup backwards compatibility ... - advaith1
Enable us to change our bot category for the discovery.
@JustinBeckwith hey! The conflicts are solved now :)
I am pretty sure this is correct as documented. Looking through the codebase, the message is specifically "Invalid authentication token". Are you sure this isn't coming from a wrapping library somewhere?
Thanks for the change here, this matches the potential behavior
Are these changes here and below intended? User installable apps are no longer in preview, but thinking maybe this just needs a rebase.
While I appreciate the sentiment, I think the way it's documented now is safer and more clear. If you need to account for bot users, which folks probably should .. they are not currently unique.
Thanks for the PR! I appreciate what you're trying to do, but I think this is reasonably clear right now.
what’s wrong with merging it though? a little more clarification never hurts
yeah i agree, not everyone knows how oauth works.
And the python example alone is not enough, because not everyone is familiar with python, nor does any language does it the same way.
Then the field can be null and not be present?
In what cases can not be present? Just curious.
Fixed but not sure why my IDE just remove spaces :c
why is it sound_id instead of id like for other snowflake objects?
there used to be an id field, they got rid of it and perhaps didn't see a point in breaking and changing the name
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.
8142a9a Make interactions_endpoint_url/role_connections... - Doc94
Description
- https://discord.com/developers/docs/resources/guild#guild-member-object-guild-member-structure documents
deafandmuteas non-optional. - https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object does not document the member as partial
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...
lowercase the j in midjourney (correct branding)
you forgot to fix the s*rial commas
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.
Steps to Reproduce
With my application i sent following components array data while patching (update) an interaction
 a few months ago, but it's still not documented.
Might need to double-check the scopes tho
I send the same message about 100 times
are you sending these all to the same channel?
- identify
- guilds.members.read
yes but it also depends, it can be sent to any channel
I also want to use this endpoint mainly just for getting the number of messages for a query.
@advaith1 seems like you also struggled with this. while you still are at discord, could you PLEASE do something to get this implemented? thanks
Correct a typo that was merged in #7012
12d6479 Correct typo of Application (#7131) - thewilloftheshadow
yes but it also depends, it can be sent to any channel
I am trying to understand if you are claiming this is some sort of indeterminism or if this is determined by some permissions/etc
48a4dab mark Guild Member fields deaf and mute as nullable - afgiel
addresses https://github.com/discord/discord-api-docs/issues/7125
after checking the implementation, deaf and mute are definitely not present in the GUILD_MEMBER_UPDATE message and should be marked as nullable
intentionally not sent, anyone that has accidentally sent a secret then redacted it would know why
changing it would mean a breaking change in discord's social contract
observation: you can solve the issue by deferring the response, this results in an unnecessary request (note: both defer and response happen in under a second, this is a workaround and not the intended use of defers)
observation: you can solve the issue by deferring the response, this results in an unnecessary request (note: both defer and response happen in under a second, this is a workaround and not the intended use of defers)
I've been experiencing this issue exclusively with commands that were already deferred.
update:
I was able to greatly reduce the number of errors by not responding to the webhook itself.
My setup now is as follows:
- [nginx] interaction webhook received via http, proxied to node
- [node] interaction webhook received via http
- [node] initial response sent via rest api callback
- [nginx] received code 499, meaning discord received the defer via rest api and terminated the webhook on their side
- [node] reply/followup sent via rest api
This solution is only ap...
Currently have to make users type out a date string for start and finish, this is the main sticking point when people try to use my bot. A date and date range picker would be excellent.
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
Templates don't carry over Channel types that requires Community to be enabled - such as Forums, Stages, etc.
So this isn't a bug.
Templates don't carry over Channel types that requires Community to be enabled - such as Forums, Stages, etc.
So this isn't a bug.
Quite strange behavior. Should have a way during creating from template to say that your new server is community and then carry over all community channels too
Nope, I'm still using version 2.5.6
@Zaratusa can you send me the link to 2.5.6 please, i need a working .so file to package my game
It's available on the GameSDK overview page. Here is also a direct link.
Still getting these two errors
ld.lld: error: A:/Mobar/GameFiles/ProjectMobar/Plugins/DiscordUE4/Source/ThirdParty/discord-files/Linux/x86_64-unknown-linux-gnu\libdiscord_game_sdk.so: undefined reference to exp2f@GLIBC_2.27 [--no-allow-shlib-undefined]
even w...
im looking for project v2 integration to discord - any alternatives?
@advaith1 seems like you also struggled with this. while you still are at discord, could you PLEASE do something to get this implemented? thanks
2a02813 Further remove deprecated game sdk docs - ajpalkovic
fba835a Update Game_SDK.mdx - ajpalkovic
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">
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....
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...
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...
Description
When creating a new application in the Discord developer portal, the application does not exist after the initial creation.
Steps to Reproduce
- Click "New Application"
- Enter application name and accept terms and conditions
- Click "Create"
- Try to update one of the fields
- 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 ...
Are you able to delete these?
9e6b27f Further remove deprecated game sdk docs (#7134) - ajpalkovic
any updates? fail on cloud run cold start.
Confirmed, we will remove apps if you name them after a very popular, known app.
so why not just show a helpful error message instead?
I agree that would be better, it's just work that we haven't prioritized yet.
It's been stated a few times now, but we cannot allow shared IP addresses to be whitelisted from rate limiting
Okay I understand that and that makes total sense, but I'm having the same problem even when naming the bot something completely unrelated, but am still receiving no error
@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.asnumcan be used in the expression to excludeAS13335(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...
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...
@jkcailteux @GamingGeek Can confirm cf-worker header can not be added by anything except Cloudflare Workers
And the specific IP 2a06:98c0:3600::103 is certainly a choice to exempt in the rate limiting configuration, great find
I want to confirm that I am experiencing the same issue.
d0797c6 Update rich presence image examples with redesi... - bdbaraban
27778e8 Update game sdk table - bdbaraban
We recently launched redesigned activity cards to 100% of users! This updates the documentation for the rich presence API to reflect changes, including:
- New image examples
- "Join Activity" >>> "Ask to Join"
- Describing new
state (party)behavior
📸 Here are a bunch of screenshots of all the new images
47a8d5a Fix typos and better badge descriptions - bdbaraban

Join- and spectateSecret could maybe use the respective icons as well, to make the attribution clearer and the legend more consistent.
The description on the right has a typo (should probably be is instead of the first and). Also, maybe both images should use the same (party) state since the emphasis is on the image...
Isn't this row a duplicate of the "second badge in last row below title" one? Going by the image you uploaded the state is the second badge in the last row regardless of being in a party or not.
9491912 Update assets - bdbaraban
I'll ask about updating the legend with badge icons!
Where is the typo in traveling?
Yeah the second image is actually incorrect -- since the "bad example" has no party field, "In Lobby" should render in a line of text below the details string.
Following up on fixing this.
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...
125b002 More asset updates - bdbaraban
4fa2348 Updated actionable example - bdbaraban
Updated this to use a consistent state (party) string in both examples!
the spectating feature was removed in 2020, we should just yeet that from the docs (incl the image)
Oh! Very good to know. We were unsure if spectating was still supported, so defaulted to keeping it in the docs. But agreed we should rip it if the feature is no more.
0c60376 Remove references to spectate - bdbaraban
Ok removed all references to spectating!
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.
Noticed the subscription_id was missing from the entitlement structure when I was looking at the "Create Test Entitlement" endpoint mentioning the partial not including it. It is in the example entitlements too, just not in the structure table itself.
looks like this field is deprecated and intentionally not documented
Ah, would have liked to see it documented with a deprecated warning in that case! I'm assuming this has something to do with the new subscription API? Wasn't mentioned in the change log there either though. Might be blind but I dont see it anywhere in the file history
Apparently, that's my bad, something something British English...
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:  - colinloretz
75ecbb0 Add return types to the embedded app sdk docs (... - JustinBeckwith
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...
This issue should be reopened as I have found a somewhat consistent repro:
Using curl, I have sent the following HTTP request:
curl 'https://discord.com/api/v10/applications/<APPLICATION_ID>/commands' \
-X 'PUT' \
-H 'Authorization: Bot <BOT_TOKEN>' \
-H 'Content-Type: application/json' \
-d '@./application_commands.json'
with the following data: application_commands.json....
395cfb8 add embedded app sdk signature - JustinBeckwith
da8d178 fix those tables - JustinBeckwith
c80248b add DAVE protocol high-level info and opcodes - birarda
Adds high-level information for the new E2EE A/V protocol DAVE, as well as related opcodes
For 👀, changelog and #api-announcement going out on this in DDevs today with more information
40bdb58 add DAVE protocol high-level info and opcodes (... - birarda
10c0d73 updated changelog for DAVE - colinloretz
with 100% more links and developer impact callout
7637e61 updated changelog for DAVE (#7151) - colinloretz
we are investigating using cf-worker as a rate limit key, but it may not be feasible for us. in the meantime a dedicated static IP is our best suggestion.
@Tomato6966 I've been unable to reproduce this behavior at all. Do you have any more details that might help with this?
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
- Move a channel or role.
- Check the audit logs entries.
Expected Behavior
A new entry is added ...
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...
Would you mind providing a channel ID and message ID for the interaction response? Would help us out a little. :)
Of the message in the screenshot?
If so:
Channel: 977181204916867163
Message: 1285682504149242000
Hey folks, we're aware this isn't working right now, and actively looking at a fix.
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
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.
6b40cd2 small update for binary seq numbers - birarda
[discord-api-docs] Branch voice/binary-ws-updates was force-pushed to `c1a8a50`
There's an error in the new DAVE protocol docs I added yesterday. The sequence number is always required from server -> client on binary websocket messages. I've also added a clarification that it is big-endian.
Description
Bots can send voice messages and these can also be sent through interactions, however the IS_VOICE_MESSAGE flag cannot be deferred for interactions it seems.
Steps to Reproduce
- Defer with flags set to
1 << 13(8192) - Send (through Edit Original Interaction Response) a valid voice message.
Expected Behavior
The message would display as a voice m...
The ability to change webhook name color would help align automated messages with the roles we use for other apps in our channels, we'd appreciate this functionality a lot.
nvm lmao just add /github at the end of your webhook link
49e6a97 Fix notation of mobile support for purchases - matthova
[discord-api-docs] Branch matthova/start-purchase-not-on-mobile was force-pushed to `818f672`
this is editing userSettingsGetLocale?
this is editing userSettingsGetLocale?
what the heck.... lol 🤦
abaffb2 Fix table formatting - bdbaraban
081191f Update rich presence image examples with redesi... - bdbaraban
@DV8FromTheWorld can we get this re-opened please?
Since SDK interfaces are documented now, should I add GuildMemberRPC to this PR?
If you are going to provide the content type, you need to provide the correct content type.
Content-Type: application/octet-stream is a generic octet stream but doesn't tell us anything about what is coming over the wire.
For voice messages, you will need to provide the audio/--- content type, like audio/ogg or audio/wav
e5c22ed [voice messages] include disclaimer about conte... - afgiel
Similar issue on server.
When I restart my node.js server and try using the command in the same discord window (without any refresh or reloads), it throws an Unknown Integration error. This simply works when I reload the discord application.
If some commands causes crashes that might bring up this issue too.
@neupanerashik: By any chance, are you deleting and recreating commands during the startup of your node.js app? If so, that may explain your issue (because your client may still have old command IDs cached) and you definitely should not do that (this wreck per-server permissions too).
We will not be adding any new events at this time, sorry.
I am closing this issue but we have an item on our backlog to improve documentation around this.
Wait, you're not going to add anything to handle workflow events (at least for failures)? That's a huge glaring omission
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...
because your client may still have old command IDs cached
Every time the bot creates new commands, do they get new IDs? This may explain the reason for this problem since I recreate commands every time I start app (delete old ones and register new ones)
Yes they do, because you've deleted them so it has entirely new commands (IDs and all). You should just register them, and not delete them beforehand, then Discord will only change the things that differ between your code and the version they have, and servers also won't lose their permissions set for those commands.
Unless there is a concept of 'rules' for soundboard, this looks like an oversight from copy pasting the automod lines
oops thanks
consider this an approval
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. ...
Yeah ok, I'm just putting it out there for people to think the thought at least.
Whether it will happen or not, achievable or not i don't know anything about.
Your idea does not sound too shabby though and can be implemented right away, even if it sounds a bit tricky (as you mention) for the average user. 😄
Premoderation is the ability to stop a message from being sent before it reaches the other parties.
Discord AutoMod is an example of premoderation in Discord.
Voice channels could never have premoderation anyway.
@erkinalp E2EE is about audio data, not text messages. The built-in automod can still be used with Text-In-Voice channels.
Fixed the ULEB128 encoding link to properly link to the Wikipedia page.
👋 I can't actually reproduce this - is it happening on all servers for you, or just one? Are you seeing any errors in the developer console? Any chance you could post a video?
Another certified erkinalp classic
I think you're overestimating the speed and accuracy of a system that would have to receive, interpret, and take action on audio from users in a voice call. If you feel so inclined, (try to) write a bot to do it
I had this issue earlier but it seems to be fixed now
Same, something/someone fixed it. Thanks
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
Can confirm, reproduced on desktop:
1b437c2 Rich presence time bar (#7166) - advaith1
ab64846 Fix markdown link in Voice Connections topic (#... - Snazzah
Hey @JustinBeckwith, the daily to weekly issue is fixed, but the date picked still has the same issue by the way. I need to pick the date twice
Believe this has been resolved. Let us know if you're running into any more issues!
[discord/discord-api-docs] New review comment on pull request #6396: docs: document incident actions
> Both `invites_disabled_until` and `dms_disabled_until` can be enabled for a maximal timespan of 24 hours in the future.
[discord/discord-api-docs] New review comment on pull request #6396: docs: document incident actions
Either the example is incomplete or dm_spam_detected_at and raid_detected_at should be marked as optional in the above table.
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
- Impact of Permission Loss During Execution:
- If the user or bot loses their `...
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.
@JustinBeckwith you are right, they do work within the range after September 6th. But, still need to pick the date twice 😅
What is the fix to this? I am facing the same issue
console.log({embeds}) return (await discord_api.post( /channels/${channel_id}/messages, { content:"welcome", embeds }, { headers: { "Content-Type": "multipart/form-data" } } ));
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...
Not sure where you got that guilds.channels.read scope from, here is a list of supported scopes:
https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes
Otherwise, most of them require some sort of 'Discord approval'.
Rigth here in discord dev portal for the scope
guilds.channels.read is unreleased scope. If possible, consider fetch guild channels using bot token instead
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.
Yes, the bot needs to be in the server.
Thats the only current solution unfortunately (until the scope is public at least).
Ok unlucky, I'll check that thanks !
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
On that note, I recommend checking the webhook.incoming scope
I think similar to the channel_types, it would be nice to have a roles_types to be able to filter out things like integrated roles, that the bot is unable to give to users.
Headings are not allowed in embed.fields[*].value. This is an intentional choice as fields already have a form of heading (name), and having headings nested below that is not an experience we wanted users to experience.
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...
It seems that Discord only include the languages found in the core library for highlightjs but hoping to see some mechanism which either gives Developers or Server owners the ability to plug in supported languages using the same toolset.
References:
Hello, the bulk bans endpoint requires both
BAN_MEMBERSandMANAGE_GUILDpermissions. These are required as the user is banned, so if the actor loses permissions these bans will fail. These failures are included in thefailed_usersresponse property. More here: https://discord.com/developers/docs/resources/guild#bulk-guild-banAll bans will include a reason. If your concern is reverting bans done by a bad actor, you could filter by the ban
reasonbetween a time range. https:/...
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...
I'm not sure why the CI fails on the table formatting, everything is correctly aligned when pasting it in an editor with a fixed-width font.
I'm not sure why the CI fails on the table formatting, everything is correctly aligned when pasting it in an editor with a fixed-width font.
I think you have a double space at the end of the second row from the right
Ok, I think this is all fixed for real this time - the filter issue on the front-end, and the backfill of data.
@JustinBeckwith looking perfect now, thank you!
I think it makes more sense to have the table split into two columns: reconnect and resume.
So it'd look something like
| Close Code | Reconnect | Resume |
|---|---|---|
| 1234 | true | false |
| 5678 | false | false |
This might be unhinged, but what if we could friend bots on Discord, and then they show up on our profile as friends?
imo, I don't see any point in allowing Apps/Bots to be addable to friend lists.
If displaying Apps/Bots on profiles is the desired outcome, why not instead allow Apps you've made (own, or part of the owning team, via the Dev Portal) to display on your own profile if toggled? 🤔
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...
one usecase of this would be to allow a bot to send you dms even if you don't share a server with it, without needing user installation
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...
Yeah, I hesitated, but a single Action column looked more readable.
I'm updating the PR to use 2 columns.
Cant reproduce this issue. Any more info you can provide, like a specific request youre making that doesnt work?
I can reproduce this issue by executing the following code,
that is pretty much sending the example message from allowed-mentions-reference, that is linked on webhook#execute-webhook.
Steps...
@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
Facing similar behaviour with both EmailBot and Dyno (as a backup) attempting to add the role. Randomly the user simply won't get the role with audit log claiming they do have it. Onboarding could also be affecting it? This seems like a race condition and is impacting the security of our server.
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
Client and System Information
discord mobile client on samsung galaxy tab s9 ultra
- 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...
70/200 seems normal, if not a bit slow. If you have reproducible steps we do have a bug bounty program https://discord.com/security
Thanks for writing in!
This repository is for issues and requested related to the discord API. It is not intended as a place for client visual bugs.
There are spaces that are intended for this type of feedback, like the bug megathreads on reddit
Description
When a Guild Emoji's allowed roles are modified, no audit log is generated (despite the endpoint supporting a reason header)
Steps to Reproduce
- Identify an existent emoji or create one, save it's ID
- Modify the Guild Emoji providing a valid array of role snowflakes
Expected Behavior
The edit event would create an audit log where the changes property would contain the before and after...
Create interactive entry points for your app's features that can be accessed across Discord.
This means `sku.price` has a number `amount` attribute and a string `currency` attribute. Properly rendering prices with proper currency can be challenging, given the large number of currencies. The Embedded App SDK provides a `PriceUtils` utility to make this easier.
36a1d85 Update Activities documentation for general ava... - shaydewael
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...
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!
...
Yes, it would be a great idea to do that 👍
Iam added the Indonesian language to make the docs can be readble in Bahasa Indonesia
r/whooosh right there lmao
I too agree this is a bad idea 🙃
Besides, you can already use the raw <@user_id> mention to mention anyone anywhere, tho it naturally (and with good reason) won't ping/notify said user if they aren't in the Server / have access to the Channel it was sent in.
Yes, but there will only be a reference to the person, for example: You have been mentioned in the server ‘Server Name’.
Buddy this is a terrible idea on its face, please put on your thinking cap for a moment and stop triggering notification emails
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...
You'll have a button if you want to mention or receive notifications mentioned by friends and not by strangers.
Greetings, and thanks for the PR! However, we are not currently accepting PRs for translations.
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:
Here is my oauth2 link, but you can even go as far as r...
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. ...
- Added a new "clan" object to the example user JSON structure, which includes fields for:
- identity_guild_id
- identity_enabled
- tag
- badge
- Documented the clan data structure with a detailed table explaining each field.
- This change reflects the new clan functionality associated with users and provides clarity on how to integrate this data in future API calls.
there is already a staff pr for this field: #6836
it has not been merged yet because this field is unstable and still subject to change.
Greetings, and thanks for the PR! However, we are not currently accepting PRs for translations.
ohh okay but will in the future, I can make a PR for discord translation?
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:
There are many different use-cases for Activities to use webcams:
- Podcasts
- Filters
- Games
In some cases this could even allow some applica...
It would be really interesting to see if they would even be willing to do this considering they stub out getUserMedia in their Electron fork because Electron has no concept of permissions, let alone figuring out how to make it work on mobile.
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
- Join to the voice chat, where you have permissions to start activities (but no perms to send messages)
- Start any activity.
Expected Behavior
I think the right solution here would be to start the activity without sending a message to the cha...
How do i add this as a Button though? When I went thru this process it just removed the option to Add App and replaced it with a link to my discord. But i want it to display like you have above. Add App button and the Support button which would link to my discord.
It's a concept, it doesn't actually exist
Please let us use this instead of the traditional file uploads, and possibly add support IS_VOICE_MESSAGE flag for webhooks.
# Convert MP3 to Opus OGG
audio = AudioSegment.from_mp3("voice.mp3")
buffer = io.BytesIO()
audio.export(buffer, format="ogg", codec="libopus")
buffer.seek(0)
file_size = buffer.getbuffer().nbytes
async with aiohttp.ClientSession() as session:
# Step 1: R...
Bots can already set a banner for their profile, so why not add profile themes/colours too? I don't really see any downsides to adding this.
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...
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...
There are no versions man. We got a build number and a commit sha, both of which are completely nonsense to any outside consumer.
There are no versions man. We got a build number and a commit sha, both of which are completely nonsense to any outside consumer.
@erkinalp I gotta ask my man, what product are you building that you want this for?
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...
. 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.
Won’t work for me (xS, iOS 16)
I'm a little confused here. On bullet point 1, you say to give the bot Manage Channels. Doesn't this trump everything else (unless you apply a channel override)?
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...
Description
During the GUILD_CREATE and PRESENCE_UPDATE gateway events, there is a user who has an activity with the name Silksong, that has the field application_id set to 1. This does not seem to be a valid snowflake ID, per the documentation.
Excerpt of JSON received is:
{
"user": {
"id": ""
},
"status": "dnd",
"client_status": {
"desktop": "dnd"
},
"broadcast": null,
"a...
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...
This breaks clients with strict typing, when deserializing JSON.
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.
Good evening, it does the same problem I can't go to the site and it puts me on the login page :((
Won’t work for me (xS, iOS 16)
ignoring the part where this issue is 2 years old, it does work for me on an iPhone X running iOS 16.6.
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:
- when a github discussion is created, discord creates the title and body as the post type.
- when a reply is made in github discussions, it is displayed in the discord post
- when a reply is m...
You can achieve this on Discords side with webhooks, and GitHubs side via [this API].(https://docs.github.com/en/graphql/guides/using-the-graphql-api-for-discussions)
You can achieve this on Discords side with webhooks, and GitHubs side via this API https://docs.github.com/en/graphql/guides/using-the-graphql-api-for-discussions
Are we expecting this to change?
oh yeah i built this myself #7181
(mobile doesn't support it for message commands yet. but everything else works)
oh yeah i built this myself #7181
(mobile doesn't support it for message commands yet. but everything else works)
this has been added! Use ?with_response=true to get the response details back. #7106
Description
The message snapshots seem to sometimes not include the required mention_roles property, if the message is forwarded from another guild.
"message_snapshots": [
{
"message": {
"components": [],
"attachments": [],
"mentions": [],
"flags": 0,
"type": 0,
"embeds": [],
"edited_timestamp": null,
"content": "",
"timestamp": "2024-10-04T09:20:03.181000+00:00"
}
}
...
For more context, this is only observed on gateway message create events. For GET requests the mention_roles list is present and even includes the IDs of the mentioned roles.
If you are receiving interactions over the gateway, you **have to respond via HTTP**. Responses to interactions **are not sent as commands over the gateway**.
the rest of the docs don't capitalize this word afaik
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 ...
I've tried a few seemingly random names and none have stuck.
this has been added! Use ?with_response=true to get the response details back. #7106
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
- Create/start a poll inside a server/guild.
- Wait for it to finish/close and for POLL_RESULT message to appear in channel by Discord.
- Inspect the raw message payload of said POLL_RESULT message (fetch it from API if needed)
- Check
message_referencefield and its contents. - ...
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
What happened to this ? I am looking everywhere but can't find any information about it.
It's an anti abuse behavior which can trigger even if you don't impersonate any app. If it keeps happening to you, the only thing you can really do is copy the bot's id and submit an appeal at https://dis.gd/request, like suggested by staff in the comment I've linked above.
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...
huh I don't see slash commands with your app, did you register your commands?
Can confirm that it is not logged, both with two different bots and listening to the gateway event itself
Can you still repro it? It looks good on my side.
Yes, I can still reproduce it. I open the App Directory, load my bot, and still see the above.
Again, this is only on desktop client, it shows correctly on web browser.
Trying to understand why you couldn't replicate, I checked using an alt account and it shows fine on my alt account.
So I would like to amend my bug report to state that it's likely causing it because I'm on the developer account for the bot. It seems that other accounts can view it fine, so this may just be a viewing glitch to me because it's my bot on this account.
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
 - colinloretz
This is a tad too late but I'm assuming this space removal was accidental?
Hmm that made me feel it's from some network cache, did you update terms recently?
Yo solucioné agregando /github en el payload
bump for the same reason as last, setting a deadline is a bit funny on this
I can confirm that too. When a member gets a role from it it doesnt send it into AuditLog last log where was given it was on 3 OCT at 5:57PM GMT+1
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
Also happening in our Discord Server,
and at least 2 different Discord Bots giving automatic / temprole roles are not putting it in logs
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
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
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...
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...
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
- Invite New App
- An alternative app updates a user role
- Audit logs not bei...
[discord/discord-api-docs] New comment on issue #7204: No Audit Logs When User Roles Updated By Apps
closing as a duplicate of https://github.com/discord/discord-api-docs/issues/7197 so we can keep the issue tracked in one place
any estimated date on when this will be fixed?
Not sure how we can make discord aware of this. Also created a bug report on discord. This is breaking key funtionnality of my bot 🥲
edca245 Update Building_An_Activity.mdx - shaydewael
2b4d66f Update Building_An_Activity.mdx (#7205) - shaydewael
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
- Begin typing a slash command that includes autocomplete options.
- Select one of the provided autocomplete values...
@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...
There is no need to do that. This repo is the most suitable place for this kind of bug report, and staff are already aware (see the synced label).
Pretty sure general client feedback/suggestions are preferred over at Discord's Feedback Site, not here. This Repository's Discussions Page is more intended for feedback/suggestions around API & App/Bot-related features.
as far as i am aware, autocomplete is not meant to act like choices and specifically allows non-matches to be sent as-is
i know some bots that use this as a "suggest common reasons, but allow custom reasons as well", for example
Autocomplete does allow custom inputs, but if the user selects an option provided by the bot, it should always submit the value instead of the name.
Yeah the issue is with the autocomplete options provided by the bot, as those fail during the channel switch.
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.
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...
Description
Discord Epoch in this page of docs has an extra zero.
It's correct at the table above it, and correct at images/snowflake.png in this repository, but is wrong on the diagram in docs.
Steps to Reproduce
Open that page and look at Discord ...
I'm pretty sure this was solved when we rolled out User Apps and the new installation screen :)
🤦 sorry, this is fixed on https://canary.discord.com/developers, and will be rolled out next week with other changes.
Objective: have it added by the discord developers
What I wanted to propose was the possibility of using customized icons, available in the roles, but for the text channels, which can always be unlocked at level 2 of the server upgrades, what do you think? vote below!!
Description
The docs search does not find entry point commands.
Steps to Reproduce
Search for entry point
Expected Behavior
It should list these docs: https://discord.com/developers/docs/interactions/application-commands#entry-point-commands
Current Behavior
It does not list the relevant docs.
Screenshots/Videos
No response
Client and System Information
Irrelevan...
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...
Description
From a quick check:
- Pages are missing
h1elements - Inputs with no labels
- No
langattribute on the document (breaking translation, hyphen algorithms, etc.) - The logo link has no aria label and is marked as
aria-currentfor 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...
37103e9 Update "building an activity" docs per new enab... - matthova
[discord-api-docs] Branch matthova/new-activity-enable-flow was force-pushed to `ca29659`
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...
If you mean as in custom icons to replace the default Channel's icon in the Channel List, Discord already experimented with this during the initial mobile UI revamps and seemingly scrapped it.
That would also work. Another possibility is just listing the affected types separately:
{
"known_types": [1, 2, 3],
"commands": [ ... ]
}
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...
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...
It means the second scope you’re using is not available to applications
It means the second scope you’re using is not available to applications
I found problem, applications.commands include dm messaging. They should divide it, or add more description
IMO, it would be better to list known_types in a query parameter, to not introduce another breaking change by changing the type of the body payload (array of commands to a json object).
PUT /api/applications/123456/commands?types=1,2,3
If types is omitted, it should update every existing type (current behavior, so this is backward compatible).
Closing due to inactivity, please reopen this if you're still having issues with this.
closing since it sounds like you resolved the issue. as an additional note, the list of scopes is documented here: https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes, there is no namespace or extension system, just these exact strings are the valid scopes.
If you right click on the app from the "shelf", can you confirm you're launching the same app id that's referenced in the code?
Obrigado por relatar 🙏🏻
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?
If you right click on the app from the "shelf", can you confirm you're launching the same app id that's referenced in the code?
Obrigado por relatar 🙏🏻
 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!
there was this bot client i logged into and your bot has free nitro and you can gift free nitro for $0 to friends, but the problem is bots cant get friends.
Is that a sufficient workaround for your purposes? I'm not too familiar with nextjs, but it sounds like whatever is going on under the hood is causing some parts of the rpc connection protocol to happen out of order, and that's resulting in the issue you're observing. So I'm not sure we'd be able to do much on our end.
e8b6a97 [Activities] - Remove no-longer-valid preview c... - matthova
656a244 [Activities] - Remove no-longer-valid preview c... - matthova
49c7842 Correct Guild Soundboard Sounds Update event da... - bsian03
9188a66 clarify get user email scope behavior (#7219) - infinitestory
Are reports like this welcome? Should I open bug tickets for failed success criteria on these pages, or is this a non-goal?
This is absolutely welcomed! I can't promise that we'll get to all of the issues, but I'm starting to look at a few of these as time allows.
I agree with the original user's opinion. Some servers use forum channels a lot, so the user may use the option to make it a community server template and also include the forum channels.
closing since it sounds like you resolved the issue. as an additional note, the list of scopes is documented here: https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes, there is no namespace or extension system, just these exact strings are the valid scopes.
You should update the discord developer app, to not confuse people
This behavior should be fixed now on this endpoint, however it will only apply the default to newly created commands to prevent older commands from being updated unexpectedly.
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 ...
When replying to an HTTP response, there is no guarantee that Discord's has received the response that you sent before it received your request for a follow up.
Discord probably needs to handle a follow up for an interaction where a result has not yet been replied to as resolving the interaction, and then dropping the http response asking it to be deferred when it receives the response.
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...
Devastating mistake
Like the Spotify feature
This might as well be something to take up with Apple, but it would be nice to have
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...
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...
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?
Today I learned that if you connect via the WebSocket transport you will not get the user object in the READY response.
Perhaps this is by design but as of today it's not documented that applications should use the IPC transport when referring to the published RPC documentation.
WebSocket
{
"cmd": "DISPATCH",
"data": {
"v": 1,
"config": {
"cdn_host": "cdn.discordapp.com",
"api_en...
Today I learned that if you connect via the WebSocket transport you will not get the
userobject in theREADYresponse.Perhaps this is by design but as of today it's not documented that applications should use the IPC transport when referring to the published RPC documentation.
This means the docs are misleading to think we sho...
providing that discord is completely shifting away from games
FYI: As of May 2024, Discord switched back to focusing on games, as per the blog post by their CEO.
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 🤔.
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...
@ap0sentada closing this due to a lack of response, if there's any additional follow up please create a new issue.
+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 ...
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
- Go to the Discord Developer portal.
- Navigate to the Manage Store page for any application.
- Click on the "Manage SKUs" button.
- Observe the URL it tries to redirect to.
Expected Behavior
The "Manage SKUs" button shoul...
not much to see here, i was just looking through the documentation for Activities on Discord and managed to find a spelling mistake within it, and thought i'd quickly fix it myself
Thanks for the fix!
No worries!
I might make another PR later on, since I've noticed a small other few tidbits that I might clean up too if that's alright.
5115cee Update Building_An_Activity.mdx (#7228) - userandaname
Any solution to this? I tried with many different random names and no one worked.
Any other solution to this issue?.
6dad1c3 Add GET /webhook/<webhook_id> permission info - DV8FromTheWorld
This endpoint has historically always required MANAGE_WEBHOOKS. We have just recently relaxed this requirement.
82e4bdf Add GET /webhook/<webhook_id> permission info (... - DV8FromTheWorld
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...
I'm not able to reproduce this behavior at all, are you still seeing this on your end? I tried to reproduce with a web server that matches yours (responds with the meta tag), and it embedded properly for all five pathnames.
Would love to see this for those who play webcam card games over discord. Integrating a life counter and more into an activity would be great.
Gonna close it as we can't repro on our side, but feel free to reopen if it still happens
How to get this working?
Even an application created with unique (not-spam) name gets deleted without any informative message. :(
There is absolutely no message/email about "application getting banned" - even for unique, sensibly named applications it simply does not work.
How to get this working @Rodentman87 ?
Looked a little closer, and it looks like this was actually resolved recently, so everything should embed correctly now. If not, please reopen this issue and we can take another look!
Still waiting to be able to delete system messages in threads.
I've tried giving threads a try over the months multiple times but it's just not as polished as it should be.
Check out this for what message types are deletable, they explicitly mention this: https://github.com/discord/discord-api-docs/issues/6551#issuecomment-1894758069
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...
53af94b fix docs for serialized_source_guild's placehol... - azycheng
[discord-api-docs] Branch guild-template-placeholder-ints was force-pushed to `97befb3`
Placeholder IDs in serialized_source_guild (system_channel_id, afk_channel_id, and other channel ids) are given as integers -- not as strings.
Can confirm that using Autocomplete as command argument (int type) makes PC discord version stuck forever.
And even if i specify int value directly (which worked previously) it gives "Input a valid integer" error.
+1, seemed to start occuring after halloween update on PC client (non-windows store verison)
+1 This is a critical issue that will affect every bot that uses auto complete and slash commands with custom expected values.
Here's an example of autocomplete suggesting a valid input, this works fine.
This is an example of a input thats invalid. What I suspect is happening is the client is validating the...
+1, if this is a intentional change hope it gets added an option to be as before.
+1, please revert the changes my clients are not able to use my booking system anymore
only the values of my autocomplete gets accepted
This change defies the expected result of autocompletion. To take a snap from the discord.js docs.  - I can run commands fine. I don't see any Halloween stuff on my client though, so maybe that's something of note?
canary 336134 (7749967) - I can run commands fine. I don't see any Halloween stuff on my client though, so maybe that's something of note?
You need to update to the latest discord client. This issue exists on.
stable 338907 (e9a24a9) Host 1.0.9168 x64 (54039) Build Override: N/A Windows 11 64-bit (10.0.22631)
This is a big one!
- Adds new Webhook Events documentation
- Moves Gateway and Gateway Events documentation into Events section (redirects are being set up for these)
- Adds Events Overview page
- Changelog for Webhook Events
Description
There is a minor error. As you can see below it says "General Overview" when actually in the dev portal the option is called "General Information"
Steps to Reproduce
Just fix the docs.
Expected Behavior
N/A
Current Behavior
N/A
Screenshots/Videos
N/A
Client and System In...
Gateway events are the primary way apps can listen and send events. Most events related to resources in Discord, like updates to channels, guilds, roles, and messages, are only available over the [Gateway](#DOCS_EVENTS_GATEWAY).
> This event cannot be received by apps at this time. It's documented because it appears on the Webhooks settings page.
Webhook events let you receive a small number of events over HTTP. While many events aren't supported over HTTP, some events like [Application Authorized](#DOCS_EVENTS_WEBHOOK_EVENTS/application-authorized), which is sent when your app is installed to a user or server, are only available as a Webhook Event.
Details about receiving events using the Gateway are in the [Gateway documentation](#DOCS_EVENTS_GATEWAY/receiving-events), and the full list of available Gateway events is in the [Gateway Events documentation](#DOCS_EVENTS_GATEWAY_EVENTS).
The Gateway is the primary way apps receive events on Discord. Read details about using the Gateway and receiving Gateway Events.
Thanks for the reports folks. I have merged a fix for this and am working to get it deployed.
Fix should be deployed to Canary, PTB, and Stable.
Update to at least 339087 (9e52169).
Thanks folks!
Description
All my embeds with attached images stopped working on my servers
Steps to Reproduce
- go to https://discohook.org/
- click on clear all
- add a webhook URL
- add any text in the content
- click to add embed
- use any image in the IMAGE URLs field inside the embed (example https://download.militaryonesource.mil/seco/Media/Default/ArticleImages/closeup-of-hand-taking-test-g889512880.jpg)
- click to send embed
Expected Behavior
I expect the embed to display ima...
Payload example
{"content":"test","embeds":[{"color":null,"author":{"name":"test"},"image":{"url":"https://download.militaryonesource.mil/seco/Media/Default/ArticleImages/closeup-of-hand-taking-test-g889512880.jpg"}}],"attachments":[]}
Looks like it is only working if you send the the image binary in the payload. But not in the url field
4393b4f Fixes discord/discord-api-docs#7234 (#7236) - noaydev
68e58df update http interaction response collapsible bo... - advaith1
This seems to be affecting normal link embeds posted in chat too.
Using dev portal's embed debugger on any direct image/video link produces what seems to be an internal error:
Same here! Been in and out all day
Thanks for the report! This is resolved.
Hey all, adding that this was related to this Unfurler incident: https://discord.statuspage.io/incidents/tfqyj3yyp90g
We are currently in a Monitoring state, please re-open if you continue to see issues.
4a9cab9 document locale fallbacks - Rodentman87
This was added a while ago, but documentation was never added. Documents the three locale fallbacks that exist for application commands in the api. I included a note about an edge case that may not be clear at first.
Hmm would the Entitlement Update/Delete events get sent through the webhook events as well? or would we have to rely on the gateway versions?
cfd45f7 document locale fallbacks (#7237) - Rodentman87
Issue is now appearing on mobile after not having been on mobile before. Will the fix also be rolled out there as well?
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
 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 ...
Put this in the thread in the announcement on ddevs but been a day or so and still present (granted, probably due to weekend). The snippet compares the payload type to the string 'PING' when it should be the int 0
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...
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
- Create a button that defers a reply/edit + send a follow up message
- 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 ...
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...
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
Heh, we've updated this to be a little more clear:
<img width="561" alt="image" src="https://github.com/user-attachments/assets/c09dc3dc-7327-488d-a94b-eca53090c8ba">
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-...
If you refresh your discord client, do the slash commands begin to appear?
This is intentional as we send authorization events even when it's not for an integration (for example, regular OAuth2) in which case it would be missing from the payload.
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...
This is completely broken. It seems implossible to create a new app at this moment
I've tried everything from a generic descriptive names to random number sequences and password generators.
a2988ef Fix sample snippet incorrectly checking webhook... - FinOCE
462cddc Add command target to interaction response mess... - advaith1
To prevent server raids and stuff bot tokens should only activiate on the whitelisted ip's adress this is a feature im suprised yall havent added till now
I am still having this issue.
This is a totally different feature request? little confused what you’re asking for
I get a lot of connections to my server that are looking for vulnerabilities with a discord user agent.
I need a way to tell if it's a discord.
It would be nice to register the discord IP in the ASN, or provide a list of IPs in the API.
They would probably best be able to do this by signing their requests with a private key in some way, and then making the public key public. But that's a little bit of a weird / complex / brittle thing to do- best to just make sure your site is secure always anyway, no matter the user agent.
I don't have any vulnerabilities, so our attempts to find them don't succeed, but I can't ignore them.
Currently, I have no way to distinguish them from bad bots, so I block them all.
What I need is a list of discordbot's IPs for opengraph.
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.
Whitelisting the ASN works, until you want to embed videos from your site and realize that discord uses a cf worker for that, which brings a whole new lot of fun if your site is also behind cloudflare, since cloudflare really hates being compatible with itself and:
- assigns a different ASN/country to the same worker ip depending on the visitor's ip (which looks kinda funny)
- doesn't let you check for the `C...
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.
Google Cloud ASN is not secure because it's available immediately after payment. It is heavily used for attacks.
I'm not home and it is correct on phone. Will send a screenshot from my pc in the evening.
This is still probably a feature request that a different request should be opened for? It's not asking the same thing as this thread.
When highlighting it shows it really well, the emoji is not as tall as the text, so It appears lower and this bothers me a lot, especially if I have a minus, so it isn't centered with the text:
The difference is tiny but it bothers me a lot.
Ok so I just noticed it's worse in the desktop app, where I saw it initially.
provided the emoji used, as you can see the minus is exactly in the middle of the image, so it should be higher.
I couldn't pick the right topic in issues, so I commented where it seemed relevant.
If you know of an appropriate place, please post a url link to this current conversation.
https://github.com/discord/discord-api-docs/discussions/3220#discussioncomment-10398283
thank you.
New discussion -> api feature requests.
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.
Any updates? This will be a really useful feature. We need this for our bot that imitates different characters, and creating separate bots for all of them is not a good idea, with webhooks it can be any number of characters
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...
General client bugs & issues are preferred either to be sent to either the Support Form, or the r/discordapp Bug Megathread.
This repository is more for API & App related features.
Description
In the past if your website had an issue with your SSL certificate, the embed debugger would provide a useful error on what the issue was (see #api-announcements message) though now it shows an internal error:
Some domains with invalid SSL's can be found here
Steps to Reproduce
- Have a ...
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...
Description
https://github.com/user-attachments/assets/701e1495-bb07-4e9d-bfd4-f4b5486dfdbc
Steps to Reproduce
Go into the app
Expected Behavior
I wanted to share my server with a friend so yeah I would not expect to get a "ultra rare error"
Current Behavior
Ultra rare error
Screenshots/Videos
https://github.com/user-attachments/assets/42e5d792-a0db-4bc4-8ffa-dc...
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...
This isn't a bug, invite delete audit log only emitted when someone deletes an invite before it expires.
Well, in that case how are we supposed to be notified about expired invites ?
The invite create event has an expires at field. You can use this to determine when the invite expires and act accordingly.
The invite create event has an expires at field. You can use this to determine when the invite expires and act accordingly.
That will be cause more hustle for large servers, but i guess it will do at the moment!
Thanks for the help.
Same issue still. Just trying to create an app, but it is silently deleted immediately. This shows as 'Unknown Application' when trying to update it.
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...
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.
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
- Create a guild.
- Ensure "Use External Emoji" in
everyonerole is disabled. - Ensure "Use External Emoji" in
#generalchannel is set to deny. - With a test user, join the server.
- Set test user's permission for "Us...
I think the permission value is accurate but the app can only use external guild emoji from guilds the user is in, not guilds the app's bot is in.
Instead, it's recommended to use app emoji, which can always be used regardless of permissions.
I think the permission value is accurate but the app can only use external guild emoji from guilds the user is in, not guilds the app's bot is in.
Instead, it's recommended to use app emoji, which can always be used regardless of permissions.
The test user in the above case is in the same server as the external emojis.
does the test user have Nitro?
basically, the app can use any emojis the user can use, plus the app's own emojis.
does the test user have Nitro?
basically, the app can use any emojis the user can use, plus the app's own emojis.
Yes
I found a workaround by using a different account (used my personal gmail instead of the one provided by my job).
Chaning my email account worked. I have no idea the reasons though.
I found a workaround by using a different account (used my personal gmail instead of the one provided by my job). Chaning my email account worked. I have no idea the reasons though.
Before trying your solution I tried again with the same account I used yesterday, and now it worked! I didn't switch to another account.
Fix is merging soon. Let us know if there are issues.
Happening to me too, so so frustrating considering the apps just "disappear"
Thank you very much. Really appreciate it. I will keep an eye out
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...
The documentation is missing the flag 1 << 14 for forwarded messages.
Based on the wording of the other flags, I would guess that the name would be IS_FORWARDED_MESSAGE. Feel free to correct that
The name in the client is HAS_SNAPSHOT
My apps keep disappearing as well
The name in the client is
HAS_SNAPSHOT
Aight, changed it, thanks!
npm run test:links is checking for change log urls based on the filename instead of the frontmatter title.
change log links are anchors on the #DOCS_CHANGE_LOG page
Hey! Just a quick heads-up on a small edit I made. I changed "a Ask to Join button" to "an Ask to Join button." It’s a minor grammar tweak, but since "Ask" starts with a vowel sound, it flows better to say "an" instead of "a." Makes it a bit smoother and just reads more naturally.
[discord-api-docs] Branch fix/changelog-links was force-pushed to `b10c7c2`
[discord-api-docs] Branch fix/changelog-links was force-pushed to `9d367ea`
Like @TwilightZebby said, this repository if for Apps and API issues or questions. Closing this as this isn't the appropriate place to report bugs.
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 ...
you need to encode the string. for example, using python'surllib.quote
Makes sense, attempted again with urllib on Python and it worked. Not sure how I missed that part of the documentation, thank you!
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?
...
this endpoint, like most documented api endpoints, are only for bots. the oauth2 page lists which endpoints each scope grants access to. you cannot automate a user account leaving a guild. if it is your own guild, you can kick them using a bot token instead.
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...
55b4945 Fix changelog link checker + changelog links (#... - colinloretz
[discord-api-docs] Branch colinloretz/post-entitlement-migration was force-pushed to `057d4c9`
Entitlement migration ended at the end of Nov 1, 2024.
PR clarifies entitlement behavior in docs following that migration.
Migration and old behavior is captured in changelog
My solution for the issue I described above was downloading and attaching the images as files and using them in the embeds. That works flawlessly
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...
Would it be possible to document this? The field doesn't seem to have changed, and I find it very useful for my bot to be able to identify the command that triggered a message.
Same issue here...unable to add an application. As soon as you want to save a change: Unknown Application
this endpoint, like most documented api endpoints, is only for bots. the oauth2 page lists which endpoints each scope grants access to. you cannot automate a user account leaving a guild. if it is your own guild, you can kick them using a bot token instead.
Can you point me to the page that list endpoints available for oauth2?
can someone help me i am putting Bot and I'm getting 403 forbidden bots cannot use this endpoint
Currently, it appears that the operation at https://discord.com/oauth2/authorize requires re-login via a web page. Is it possible to directly open this authorization link on a mobile device, so that it opens the Discord mobile app without needing to log in again through the web page?
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...
After doing a lot of digging and experimenting, I think that when the user we are fetching is in a VC, the app needs the CONNECT permission on that VC. However, when the user is not in a VC, the API does not error. Logically this makes sense after thinking about it, but it still needs documentation.
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?
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
- Connect Twitch integration to your server
- Make good content and have people sub to your channel
Expected Behavior
Roles always appear granted by the Twitch integration
Current Behavior
Sometimes...
It was suggested in DAPI that it might be people who are already in server getting roles vs. people joining through the Twitch integration under user settings.
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...
I don't understand this issue, but the information included in this report doesn't indicate a bug. If this is a legitimate issue, please provide additional clarification.
Hey ChickenBurger, I've been facing the same issue with my setup, if you have found any resolution to the above problem, let me know. Cheers :)
I think this has been broken for a least a few months. I remember trying a while ago and today I'm getting the same error "Unknown Application" when I try to save a new OAuth app.
PATCH https://discord.com/api/v9/applications/1304742778923778048 404 (Not Found)
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 ...
5 Years Later still same issue, uploading multiple emojis using the (upload button) fails on some emojis with the rate limit reason now I have to wait for 1 hour to upload more emojis.
Definitely this is necessary
Same issue, after approximately 10s the app (lots of different names tried) is deleted, leading to 'Unknown Application' error when trying to edit.
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.
Steps to Reproduce
- Go to the [Discord Developer Portal](https://discord.c...
options is not an array :)
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
Documentation for the flags parameter is missing IS_VOICE_MESSAGE. Message Edit does not support setting it for some reason so that stays the same.
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....
Confirmed this is a recent bug, and we have a fix coming out tomorrow. Apologies for the trouble folks!
Description
Adding official Ballerina discord connector to the Discord community resources documentation. Ballerina discord connector uses Discord REST API [1] to interact with Discord.
npm run fix:tables and fix table formatting
Right now, when you want to fetch multiple members from a guild you can either fetch ALL members in chunks of 1,000 each from the API, fetch all members one by one from the API or do a Gateway Guild Members Request.
I would wish for a user_ids option for the List Guild Members API Endpoint with the same behavior of the Gateway Request ...
This should be fully fixed now
It is not as of today. I needed to do the workaround (adding/removing overrides) in order for new commands to appear
npm run fix:tablesand fix table formatting
Resolved the formatting issue with 836377e7a0f0b6df4dbd60c3b8326842b1027b67
As referenced in #4456, we are no longer accepting contributions to this list. If you believe your library is mistakenly excluded, please open an issue.
This should be fixed and rolled out. Let me know if you run into any other issues!
c838d35 Add clarification around URL mappings and file ... - jkap
We received #7223 reporting issues with URL mappings set to a file failing to resolve due to the activity proxy adding a trailing slash to the resolved URL.
After discussion, we don't consider this a supported use case, and have added a note indicating that this may lead to unexpected behavior.
Resolves #7223
(obvs please feel free to do an edit pass on this)
Yeah still happening. Been dealing with the issue that the app is created and then goes away. Happens right after the token reset action every time
having the issue today 11/13/24
Same issue here. @JustinBeckwith any proposed workaround? (tagging since you reopened).
Tried making various bots for my classroom. Same issue.
There is no proposed workaround as of yet, but we are actively looking into the problem, and will get back to the thread this week.
Just wanted to confirm, application creation via https://discord.com/developers/applications is down hard. Applications are not created and user's are given "Unknown Application" if they try to save. Had multiple people try to create an application, all with the same error.
Hopefully someone will take this bug report seriously :pray:
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...
More information on why a request is blocked is highly desirable.
I created a new Gmail and signed up with that, and could create an app without any issue. It seems to be linked to the user rather than the app name?
I created a new Gmail and signed up with that, and could create an app without any issue. It seems to be linked to the user rather than the app name?
I tried the same thing and also was able to create an app. It seems like discord has a "magic" way they ban users from creating apps, with out reporting, explaining, or providing an appeal process. It is a very hostile environment to work in.
Update for those affected - there are two separate issues at play.
- Last week we had an incident that caused unintentional deletion of a subset of apps. For most accounts, this should be resolved.
- 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 ❤️
I have also encountered this issue. I really need help
Do you think they would help?!
Read the incident report.
Read the incident report.
It worked, but where?
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
...
The columns in the Application Flags table were previously ordered as Value - Name - Description, whereas all other tables followed the order Name - Value - Description.
To ensure consistency across the documentation, I have reordered the columns in the Application Flags table to match the format used elsewhere.
This table uses the same layout as the User Flags table and possibly others.
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...
Update: It seems to be only be happening on macOS. It work's fine on Windows.
[discord/discord-api-docs] New comment on issue #7277: Gif url links won't animate properly on macOS
@pkdev08 thank you for reporting this!
The file-extension specified in the external embed URL path (i.e. .gif) is not correctly recognized, leading to a static PNG being returned rather than a GIF. This stems from a regression in the Discord Media Proxy.
We'll make this a top priority for fixing. Thank you again!
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",
...
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...
[discord/discord-api-docs] New comment on issue #7277: Gif url links won't animate properly on macOS
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 !
This table uses the same layout as the User Flags table and possibly others.
You're right, but it seems that only the User Flags and Application Flags tables follow this specific order. At this point, I would suggest updating both tables for consistency.
f4db1c1 Document new entitlement endpoint behavior - appellation
[discord/discord-api-docs] New comment on issue #7277: Gif url links won't animate properly on macOS
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...
Some properties here don't appear to be on the entitlement object documented. Should they be removed?
This is the same object as documented for the list entitlements endpoint.
> warn
> `{ opened: null }` is returned on older Discord clients that do not report the result of the open link action.
is there an "earliest client" we can include that would have this, or just include an approximate date (clients from before November XX, 2024)? just so when this is present, it still makes sense in a month or two
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...
19ea995 Add clarification around URL mappings and file ... - jkap
Thank you for the report. We'll continue monitoring the situation and make api improvements.
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": "...",
...
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...
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
Alternative solution: Implement GNAP #4544
64339f8 doc update - HamzaAtDiscord
Closing this out. On July 2, 2024 we resolved a bug where the oriented width & height were not used for embedded images; I suspect that could have fixed this issue too. Please re-open if this continues to be an problem. Thanks!
Updated with the warn and to include a rough date (dec 24)
a9fced6 openExternalLink returns a `{ opened: boolea... - HamzaAtDiscord
Do you mean this app? https://discord.com/application-directory/1289280100956635209
There's a built-in /tts command Discord has (though it can be disabled locally in User Settings, just in case you've disabled it & forgotten)
Got it, thanks. Forwarded to the right folks internally.
明白了,謝謝。轉發給內部合適的人。
Will there be official personnel here to accept it?
So it isn't perfect ... but I think we've actually addressed most of the things here, and a lot of what we found with Wave. Let us know if you run into any other issues!
This should be fixed now
Seems like the error now happens with a role with at least 250 users.
Description
Just passed that tutorial and found several missing instructions:
- there is no mention that at step 3 you have to add
InteractionResponseFlags,MessageComponentTypesto list of the entities being imported fromdiscord-interactionsandButtonStyleTypesat step 4. - no mention that you have to extract
idfrom request body. You have to add id to the following listconst { type, id, data } = req.body; - no mention to add
const activeGames = {};to declare games ...
reCAPTCHA v2 and hCaptcha are beaten: https://arxiv.org/html/2409.08831v1
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 ...
d7b6b7b migrate to LinkButton (#7286) - JustinBeckwith
e6ac32c Clarify defaults - appellation
5f58209 Document new entitlement endpoint behavior (#7279) - appellation
This is an issue created as part of a contribution to the discord-api-docs repository.
cc @DV8FromTheWorld this seems to be the most sensible place to put it
9c4fa36 Specify content-type header requirement (#7289) - bsian03
Why not stop sending fields as expected per documentation?
Not present when using test entitlements.
I believe this should be amended if this is always present, or null, or otherwise?
Not sure if Mastodon should be added here as it is not publicly available unlike Bluesky which is out on canary at least but there are people who have their Mastodon accounts on their profile so it's something developers can encounter
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...
Not the feature we deserved, but the feature we needed.
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...
Had this happen twice in two seperate servers now. Bumping this.
Yea user apps have been quite annoying and hard to moderate, your best option is to disable the default Use External Apps permission for servers that you own.
This is incredibly annoying, please fix this before more bots figure this out
They also abuse the client bug when user that invoked command is not cached and not shown in 'Interaction Info' context menu.
More than 3 years passed and we still need it...
Correct, thank you! We should have updated these for the entitlement migration but they were missed.
4c280af Fix ends_at, starts_at description for test ent... - colinloretz
They also abuse the client bug when user that invoked command is not cached and not shown in 'Interaction Info' context menu.
FYI this has been fixed
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...
My theory is these random "published" messages are actually Messages that have been Forwarded using the Forward feature 🤔
That's a good shout. I can confirm all these messages have been forwarded except the "Unknown" one. Not sure what that is.
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.
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...
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?
We've been asking for more components since what now...? 2 years?
https://github.com/discord/discord-api-docs/discussions/5883
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...
I'm aware these components already exist outside of modals, but it would be nice to provide a cleaner UX by having it all in a modal instead of doing some in an Ephemeral Message with a Modal as follow-up.
Noticed this path has an actual application ID in it instead of the hyperlink to the application object. It's obvious enough what it means, but it you took it at face value you'd be trying to fetch app assets off some random bot not your own lol
Iirc it was because this route is exclusive for nitro sticker packs and the banner images were saved in that specific application. Might be wrong but I remember something along these lines.
Iirc it was because this route is exclusive for nitro sticker packs and the banner images were saved in that specific application. Might be wrong but I remember something along these lines.
Ah that's funny. A note somewhere mentioning that would be nice but I'll close the PR :)
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
}
...
bumping this. happened to me as well
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...
@neat-clean-code you da man!!!! Thank you!
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...
there's no reason it hasn't been implemented, it just hasn't been high enough priority to get built so far.
e70f3ce Entitlement: Update ends_at and starts_at to be... - colinloretz
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'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
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...
Currently, the GET /skus/{sku.id}/subscriptions endpoint requires the user_id query string parameter if it is not used with a Bearer token.
If you want to get all the available subscriptions of a SKU you would have to do N calls to the endpoint which may cause the expected: ratelimits.
For larger bots with tons of users, to get all the available subscriptions on a SKU, they would require an oper...
Thanks for the suggestion and I acknowledge that it would be much more convenient to use this endpoint without requiring a user ID. Unfortunately we will not be implementing this due to the complexity of making this change.
Depending of what you are trying to achieve, GET /applications/{application.id}/entitlements?sku_ids={sku.id} may be a good candidate.
Thanks for the suggestion and I acknowledge that it would be much more convenient to use this endpoint without requiring a user ID. Unfortunately we will not be implementing this due to the complexity of making this change.
This is a bad reason for not implementing this.
The server I work in always gets their reactions deleted and we want to keep on the "manage messages" permission but log with the bot I am developing who removes / clears reactions. This can't be seen tho because discord does not give that info wich I think should be. Please fix this and add it to the api.
This is already available in the Message Reaction Remove Gateway Event.
https://discord.com/developers/docs/events/gateway-events#message-reaction-remove
Description
Performing a client credentials grant used to accept grant_type + scope as URL parameters, up until some point today. Now, you get back an unsupported_grant_type error.
Steps to Reproduce
import requests
API_ENDPOINT = 'https://discord.com/api/v10'
CLIENT_ID = ''
CLIENT_SECRET = ''
def get_token():
headers = {
'Content-Type': 'application/x-www-form-urlencoded'...
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...
This worked by accident and was unsupported behavior. The correct way to pass these parameters is via request body, as per the oauth2 spec: https://datatracker.ietf.org/doc/html/rfc6749#section-4.4.2
Accident or not, this was working behaviour that has suddenly been removed, breaking live applications... I would ask that it is reinstated, and then removed after a properly announced deprecation period.
Plus 1;
Use case:
We have an economy system, and we want to give points to all members in a role.
Currently using /guilds/{guild.id}/members and filtering the list client side by role id, which is surly more of a performance hit, on both server and client than /guilds/{guild.id}/roles/{role.id}/member-ids
Plus 1;
Use case:
We have an economy system, and we want to give points to all members in a role.
Currently using /guilds/{guild.id}/members and filtering the list client side by role id, which is surly more of a performance hit, on both server and client than /guilds/{guild.id}/roles/{role.id}/member-ids
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.
lol this is so funny thanks for sharing
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...
hey @shaydewael, sorry for the ping but it's it possible to reconsider this? since again, i find it very useful to have some way to determine what command triggered a message, especially for commands triggered by my own bot
Please open a separate Github discussion for a feature request for determining which command triggered a message send
Bumping since it has been over a year. Is anything still blocking this?
even human users might want to use IP whitelisting in certain cases (schools&businesses that never leave a certain computer or group of computers)
As per https://github.com/discord/discord-api-docs/discussions/5094#discussioncomment-6298096, apostrophes are supported in command names
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.
Don't know if it's related, but I tried to get the bot token. 2FA wasn't accepting code, and SMS never sent. Had to turn them both off and do lots of re-signing on devices as it signed me out with each failure. Finally got the token, but now I have a 24 hour ban 🤷♂️
f1fa006 support multiple subscription tiers - colinloretz
- [x] Updated Managing SKUs to allow multiple subscription tiers
- [x] Updated guides for implementing upgrades and downgrades
| canceled_at | ?ISO8601 timestamp | When the subscription was canceled |
Shouldn't this have a ? in front instead?
a8cac29 Update docs/resources/Subscription.md - colinloretz