Did you mean AAAA? A records are for IPv4 addresses.
#github-notifications
1 messages ยท Page 9 of 1
A POST works, but is there any way or query to add to have it return more than the first 25 members? Requests from the members tab only use the ?limit query, but modifying that does nothing in a manual request.
Description
The docs state the following about permissions:
Permissions are stored in a variable-length integer serialized into a string, and are calculated using bitwise operations.
[...]
In API v8 and above, all permissions are serialized as strings, including the allow and deny fields in overwrites.
[...]
In API v6 (now deprecated), the permissions, allow, and deny fields in roles and overwrites are still serialized as ...
Missed that, interesting bug :)
Thanks!
I couldn't repro with the repro steps you provided. Can you provide additional repro steps to help us narrow this down?
Issue seems to be happening only on forum channel threads (did not checked standard threads). Attached two videos showing the same exact command executed on threads and normal channel.
Client and System Information
Issue persist in web and desktop client.
Electron 22.3.26
Chromium 108.0.5359.215
Host 1.0.9030 x86 (42484)
Windows ...
Thank you @lmle! Let me know when you have news.
If Discord wishes to keep the current poor quality of documentation relating to integration of GameSDK into UE, then that is fine by me. If on the other hand they wish to reference some or all of the example project I created, then they are welcome to do so in whatever way makes the most sense to them
Your judging the quality of the documentation without improving it. On top of this, your project is far from perfect too, and I have many points to make about your project (sorry to say).
...
Thank you for the constructive criticism. It is true that the sample project isn't perfect and there are a number of ways to improve it.
It is also true that the current docs are at least an order of magnitude worse, and the sample is a massive improvement over it.
If your argument is that the current docs should be kept because the significantly-improved sample isn't perfect, then that does help to explain why the Discord SDK docs are so bad and seemingly unlikely to improve.
There...
Iโve read your README, Iโve not stated that my point is to keep the docs
the same way at all. Iโm simply stating that if youโre that bothered,
change it yourself.
also, your point of โnothing is hard codedโ is completely false, the
ClientID has to be baked into the constructor, which means blueprints canโt
change it. Why not allow blueprints to change it so people can just easily
use the sample project?
To word by point even better in hopes that you may understand, a sample
projec...
the ClientID has to be baked into the constructor, which means blueprints canโt change it. Why not allow blueprints to change it so people can just easily use the sample project?
I haven't added any Blueprints support at all to the sample. It is purely C++; the intent is for the UCustomDiscordGameSubsystem to be completely replaced by whatever game wants to reuse the plugin and so each game can determine the level of BP customization they want to support.
You do make a good point t...
Yes this is desperately needed +1. It is very strange to me why the interaction component does support buttons, comboboxes but no textboxes while the modals only support textboxes. Very frustrating as I want my users to enter both text and select something.
the point is not about being able to use the command, but rather to even view the command when typing slash /. Read OP.
this is already how it works, if you don't have permission to use a command it won't be visible to you
Description
I'm building a feature which requires me to edit a bot message and attach an image to it. I have url for image that looks like https://cdn.discordapp.com/...
I'm using the PATCH /channels/{channel.id}/messages/{message.id} API.
Message content and components get updated, but the imag...
You should not be setting the content-type to multipart manually, since the header requires a computed boundary (usually automatically generated by the http library), see the example from mdn on how to use fetch correctly.
The documentation includes examples too, in the Uploading Files section. As described there, it is required to use ...
The gateway section documents the send rate limit of 120 events per 60 seconds.
However, it's not documented exactly how that limit is implemented in practice, and since there's no rate limit information included in received gateway events (cf. REST API headers), this does leave end-users with a bit of a guessing game as to whether or not they're likely to overstep this limit with their next event:
- Does the limiter implement a rolling time window, such that it checks for 120 messages se...
Description
When a guild creates a scheduled event with a frequency members have the ability to mark their interest in all events in the series or individual series events. Each of the listed series appears to have a unique EventId that can be copied. When performing a List Schedule Events for Guild or Get Guild Schedule Event the individual series event id(s) are not returned.
Steps to Reproduce
- Create a guild scheduled event w/ a Frequency
- Execute a List Schedule Events fo...
Hello folks.
I just wanted a develop bot which can change user status. And i wanted this feature so badly. I even mailed and got declined. :) I kinda understand discord for this but. It is essential for discord to be get into also Business sector.
let me explaein "What this feature holds";
Changin user status when he/she gets in meeting in every platform ( bot will check and set status )
Changin user status when he/she writing code
Changin user status when he/she writes to off chan...
Isn't this technically already possible using Rich Presence/RPC/SDK options that Discord has? ๐ค
Just, not via Bot accounts but instead using local external software on the User's own device.
Description
The 2023-10_social_proofing_message_nitro_badge experiment introduced Nitro badges next to usernames in chat. For this feature to function, premium_type was added to the partial user object. The field is already documented, but the field used to require the identify scope using OAuth2. Moreover, the field is absent in some contexts where partial user objects exist, such as gateway events containing member objects. As such, the exposure on GET /users/ and `GET /cha...
@appellation
I was able to pinpoint the exact condition when the error occurs - when a post is displayed in split view - forum on left, post content on right. When you display a post in a full view, slash command is working properly (bot was offline during the recording, but the client launched the slash command).
https://github.com/discord/discord-api-docs/assets/33233389/3c353fb0-263b-4f5d-9938-eb8d6f0cb812
Thanks for the detailed repro steps! I was able to repro; I'll look into a fix.
I've also been looking into this and would love to see more support for it. I understand it might conflict with some of the security, but I know there is also a safe workaround; maybe though the gamesdk?
The behavior has been changed and internally I've made it so that when a new message type is made, it is implicitly deletable (this used to have to be an explicit thing devs would set.)
Now, this has been inverted to a set of "undeletable" message types, which I'm reproducing below (with code comments and all so people understand the rationale.
UNDELETABLE = {
# These deal with GDM recipients being added/removed,
# we should not allow these to be deleted, si...
I would like to note that CHANNEL_NAME_CHANGE for GDMs is also reused with threads, thus it cannot be deleted. Hoping one day deleting based on channel type will become a thing like you said, but it's not going to happen at this time.
This should be updated to reflect the changes mentioned here: https://github.com/discord/discord-api-docs/issues/6551#issuecomment-1894758069
Additionally, the pr's scope could be extended to simply include all the system message updates too...
This is possible but not very documented. Also without Discords permissions you can only use the app on the account that registered the app.
this is not true, only certainl rpc scopes require whitelist.
Anyone can set rich presence and there are numerous libraries providing this for you.
All of these make sense and should be added.
Modals feel pretty Empty and barebones atm.
If im correct i need to install another tool in user computer for that ? If this is the case then it would be problem. Because most of the users doesnt want to install another tool. Instead of this why discord just get perimssion and let the bot handle that?
There is another solution like getting users token but it's not recommended since it's illegal. That is why im requesting this feature.
@Lachee You're right, I forgot that not all scopes require whitelist. Sorry.
+1 for this. Could be super useful in some applications and really make the modals shine!
+1 for building more elaborate interactions with users, expanding functionalities and flexibility
Autocomplete in text input fields sounds like a neat, useful idea. Would be nice if itโs added here.
Hoping one day we can get some updates announced for this ;(
Description
Up until a few weeks ago, when pasting an image into a slash command, it would populate the attachment option. This was regardless of which current option they had selected. Pasting now does not populate the field.
Steps to Reproduce
Create a basic slash command using the following JSON and register this command through the https://discord.com/api/v10/applications//commands endpoint
json = {
"name": "test_submit",
"type": 1,
"description":...
It is a fixed window limiter, with multiple buckets depending on the route you use.
Your answer refers to the REST API, not the websocket gateway.
Further, the REST API no longer has a fixed window, it's a leaky bucket.
Thank you for flagging this! I've raised it with the team and a fix should be going out next week
Said fix being OAuth2 required or present in all scenarios?
The behavior will return to what it was before the 2023-10_social_proofing_message_nitro_badge, which I believe means it'll be back behind the identity scope.
It would also be good to document what the format of the timestamp is.
Description
The client side percent-decoding allows for seemingly bypassing some automod rules.
I don't really see an easy fix for this, besides completely disabling percent-decoding on the client (which is mostly a cool feature) or enabling percent-decoding on the automod side, which I feel like is probably going to slow it down and therefore slow down sending messages?
Steps to Reproduce
- Use this regular expression
[^\x00-\x7F]for example on the automod configuration, wh...
I've recently renamed all my projects to use lowercase titles so it's more aligned with typical github project. Old redirection will only work for week or two so it shou;d be updated till then. Thanks!
GitHub doesn't specify a time limit for redirects regarding repository renames.
When you rename a repository, all existing information, with the exception of project site URLs, is automatically redirected to the new name. <sup>1</sup>
Additionally, casing in GitHub URLs don't matter: https://github.com/dISCORD/Discord-API-Docs will work just fine, for example.
GitHub doesn't specify a time limit for redirects regarding repository renames.
When you rename a repository, all existing information, with the exception of project site URLs, is automatically redirected to the new name. 1
Additionally, casing in GitHub URLs don't matter: https://github.com/dISCORD/Discord-API-Docs will work just fine, for example.
That's something new, o...
Description
Discord recently introduced image gallery support to their unfurler. This is great! There is one issue: Wikipedia has duplicate og:image meta tags to specify alternate sizes of the same imageโnot visually distinct images.
Since Discord already has custom logic to unfurl Wikipedia (the embed description appears to be generated from HTML elements in the body, not from head tags), it could be feasible to add some checks here to prevent ...
Adding onto this, an issue I've found that isn't specific to a single website is that same image links aren't de-duped if the website provides metadata in both Opengraph and JSON-LD formats at once.
For example, the following html will produce two of the same images:
<!DOCTYPE html>
<html>
<head>
<meta name="og:image" content="https://example.com/image.png"/>
<script type="application/ld+json">
{
"@context": "https://schema.or...
That's something new, ok nice - thanks for info! When I did rename my accout nickname to use lowerspace it did warn me that it may break all existing links to my profile and/or repositories.
That's just because if you change your name completely then someone can use the old name after a certain amount of time, and they use that message regardless of what in your name changed
There's a comment from 2020 here: https://www.reddit.com/r/discordapp/comments/gneyfo/bot_to_kick_people_who_have_been_inactive_longer/fraxmqa/
This is due to a technical limitation on our end of only storing the if you were active in the last 45 days. We've since fixed this (moving to new database tech), but we gotta wait a while for data to populate.
Seems reasonable that now we could have the ability to prune up to 3 years?
up to 3 years
Well more like up to 2 years, since Pruning only affects Users who have not logged into their Discord account at all over the selected time period, and Discord automatically deletes Accounts that have not been logged into for 2 years.
up to 3 years
Well more like up to 2 years, since Pruning only affects Users who have not logged into their Discord account at all over the selected time period, and Discord automatically deletes Accounts that have not been logged into for 2 years.
There's a comment from 2020 here: https://www.reddit.com/r/discordapp/comments/gneyfo/bot_to_kick_people_who_have_been_inactive_longer/fraxmqa/
This is due to a technical limitation on our end of only storing the if you were active in the last 45 days. We've since fixed this (moving to new database tech), but we gotta wait a while for data to populate.
Seems reasonable that now we could have the ability to prune up to 3 years?
Description
I, KylomaskGamer, along with user Soheab_, have encountered an issue with modifying guild features, specifically the INVITES_DISABLED feature. Despite having the necessary permissions (confirmed by both users), we consistently receive a 403 Forbidden error. The problem seems to persist even with admin rights.
Steps to Reproduce
Use the provided discord.py snippet to modify guild features:
import discord
from discord.ext import commands
bot = commands.B...
Which guild type are you trying to disable invites in? Might be related to https://github.com/discord/discord-api-docs/issues/6613...
I can repro this on a non-community guild, works fine when enabled.
I can repro this on a non-community guild, works fine when enabled.
Please see the issue I linked, that's intended behavior ๐ซค
Adds the Domain service to the list of connection services in the User section, as they are returned by the API
type is missing from both events. 0 for normal, 1 for burst
also what's the word on getting this merged (or not merged even?)
Does this have a time of completion yet?
This is years old and really should have happened by now. Any updates? I use buttons and have to explain to every new user what they do. It would be so much easier to just have hover text. Since the buttons activate specific things and the lists can get long, it isn't practical to keep a list of what all 15 buttons do in the message.
Sometime over the summer of 2023, I thought I saw announcements about Discord API v9 being deprecated in early 2024. Some partner projects such as discord.js had also posted about the need to upgrade to newer version of their library that supports Discord API v10. I can't seem to find information on that anywhere anymore. https://discord.com/developers/docs/reference#api-versioning just shows that it's available alongside v10.
This thread hasn't been active for a while, and this thread disc...
Why don't we have a GuildAuditLogEntryUpdate yet??? How can we track that
Ive recently been getting Guilds.Models.ScheduledEventException leaked.
Description
test issue pls ignore
Steps to Reproduce
test issue pls ignore
Expected Behavior
test issue pls ignore
Current Behavior
test issue pls ignore
Screenshots/Videos
No response
Client and System Information
test issue pls ignore
Confirming this issue on both Linux and Windows clients. Still occurs on Discord Stable 260725 (05f86b6) Host 0.0.41 x64, which is the latest update.
Description
When I enter discord, it simply appears on only half of the screen, as if it cuts off the rest of the app's screen, everything is cut off, emojis, photos, etc., I don't know why this happens, I've already checked and it's not my cell phone, it's actually discord.

What are we supposed to do if IPv6 is the only option from an ISP or cloud service provider?
for me it worked setting the limit to 999
i cannot find a reference on postman for further details. could that also get added or did i just miss it?
Description
When Iโm trying to get message information, and also the TTS status of the message (whether or not itโs a text-to-speech message) the value js returning โfalseโ when I run it on a message that was spoken out loud when it got sent.
Steps to Reproduce
- Send a TTS message with
/tts message:Something to be spoken - With a bot, check whether the message is TTS. (I am using Discord.ja)
And thatโs all.
Expected Behavior
The value to return โtrueโ when itโs a TTS m...
What format are those theme colors in? I am trying to convert them to their hex from decimal, the operation is successful, but they are in no way accurate.
Feature
The goal is to display the bot's activity in the user's language like we do for the interaction commands.
It would work the same way with adding into the ActivitiesOption class a property"name_localizations" where we could input different display for different languages
For example:
{
name: "Hello, World!",
name_localizations: {"fr": "Bonjour, monde !"}
}
Embedding YouTube playlist does the same:
Playlist: https://www.youtube.com/playlist?list=PLpM-Dvs8t0VbMZA7wW9aR3EtBqe2kinu4
Embed: 
Seria excelente permitieran obtener los pronombres !
I am writing to request the addition of support for retrieving a user's bio and/or pronouns through privileged intents in Discord's API. With the recent introduction of a new profile field for pronouns, it would greatly benefit bot developers to have access to this information, enabling them to provide enhanced features and functionality to Discord users.
Use Cases:
- AI Bios Moderation: Bots are commonly used for content moderation, including scanning and filtering user-...
Thanks for the bug report! We can confirm that the bug is reproducible when getting the message data via the REST API, and we've tracked this in our backlog.
@JarvoDiscord , can you share more context on the use case for checking tts? So far, it's not obvious to me why reading that value is necessary outside of the Discord clients receiving the message and converting the text to speech
Thanks for the bug report! We can confirm that the bug is reproducible when getting the message data via the REST API, and we've tracked this in our backlog.
Alright. That would be awesome.
@JarvoDiscord , can you share more context on the use case for checking
tts? So far, it's not obvious to me why reading that value is necessary outside of the Discord clients receiving the message and converting the text to speech
It's for getting detailed information of a message.
@JarvoDiscord , can you share more context on the use case for checking
tts? So far, it's not obvious to me why reading that value is necessary outside of the Discord clients receiving the message and converting the text to speechIt's for getting detailed information of a message.
Rephrased: we are looking for more specific information about your usecase and how receiving or not receiving this information will directly effect the functionality you're trying to implement with ...
It's to get message information using a Discord bot contextmenucommand. Or if you mean how I used it... Using discord.js message.tts - checks if the message is a TTS message.
That's all. Don't have more.
It's to get message information using a Discord bot contextmenucommand. Or if you mean how I used it... Using discord.js
message.tts- checks if the message is a TTS message.That's all. Don't have more.
So you use a ContextMenuCommand to output detail information about the message, perhaps as a table of data, and your desire is for the tts value in that table to be accurate to whether tts was used or not.
Is this an accurate depiction of your usecase?
Yeh.
The contextmenucommand triggers the command. In that command script there is a variable that checks if TTS is true or false. And outputs that text to the user-end. So the user would see: TTS: true (or false)
But because it's broken on the API side, it only shows 'false'.
Just like how you explained it ๐
Given
[display text](https://ww.google.com)
[display text](https://ww.google.com 'Some alt-text here!')
[display text](https://ww.google.com 'https://google.com')
We display the following on desktop now.
The same visuals are also found on mobile.
As such, there ...
Description
Any messages that my bot sends (or edits/updates) with images attached are completely blurred for the first ~1-2 seconds. This is true even if the image is not updated in the edit.
This behavior was not happening last week or before and makes my bot quite unusable.
I've been told this is intended for messages with any attachment (attachments are scanned for safety/security?), but it seems like it is happening only on the desktop client, not mobile or web. I am suspecti...
All markdown items are displaying incorrectly (bold, italic,
code, hyperlinks, etc)
This was addressed a long time ago (Stale issue, sorry about that!)
Markdown not properly rendering in App Directory Preview Page for Hyperlinks
I have just made a change to allow masked links. It will be rolling out to clients in the coming days.
i can reproduce this issue with an application using an application endpoint (vs. gateway)
repro:
- enable tts messages in user settings
- send a tts message
/tts test - hear the tts message
- use a message context command on the tts message
expected:
the inner message payload reads "tts": true
actual:
the inner message payload reads "tts": false
note:
this is also the case when explicitly requesting the message from /channels/:id/messages/:id (tested on multiple ap...
Update: This seems to only impact DMs with my bot and is not present in raid levels
We are discussing with the security team about how they want to approach this.
Update: This seems to only impact DMs with my bot and is not present in guild channel messages
It is present in more than DMs. Certain guilds, based on settings, are not opt'd into content scanning / protections.
Alright, I really appreciate the attention here as this is critical for our project.
As title, please allow online statuses to be changed per each server as well.
I always liked to be able to stay Online but being forced to stay "Busy" or "Invisible" on the main server I'm most active on, otherwise users from other discords will spam message me is something that I don't feel is right at all.
P.S: add also a secondary button to restore it to the default behavior for all the servers, for quality of life reasons.
The Elasticsearch member search endpoint (/guilds/:id/members-search) is accessible to bots and can be useful in certain situations. The old members search endpoint (/guilds/:id/members/search) is already documented and is in the spec but I assume this endpoint is slower and/or less accurate than the new endpoint.
This new Elasticsearch endpoint might not ever be official documented in discord/discord-api-docs but it is still useful to developers and should at least be documented in th...
@SuperSajuuk, thanks for creating this feature request ๐. I also posted this on Discord's feedback forum to increase visibility (see https://support.discord.com/hc/en-us/community/posts/21064424959639-Dedicated-MANAGE-AUTOMOD-Permission).
Description
Yesterday, I started having HTTP 400 errors when trying to retrieve a token using the Client Credentials Grant flow. Someone on the Discord Developers server pointed out that a fix was to pass the client_id and client_secret of my app in the request body instead of passing them as a Basic Auth header. We are not sure if this is a bug, or if the docs were not updated for that change ๐ค
Steps...
Thanks for the report. We are looking into it
We've identified the problem and a fix is on the way.
A decision has been made and a fix is merging and rolling out.
Going forward, bot embeds will not be subject to the "pending state" obscuring while resources are scanned.
Thank you for the addition information.
I understand the desire here is to get an accurate value for tts, however the reality is that Discord does not actually store this value as it has no use for the Application. We accept this value and send it off through the Gateway to power the TTS feature, but it is not written to our databases at all.
In fact, it isn't as simple as storing the data and returning the true|false value as we would need to retool a variety of code internally to ...
The spec is intended to be reflective of supported (ie. documented) API features. So this will enter the spec if/when it enters documentation
This is excellent news for me. I do think that security is a real concern but I am hopeful that a more elegant solution exists.
Thank you very much for your communication with me on this topic.
This was either fixed at this point or it was a temporary infra issue where the service was actually down. I tried saving the two regexes several times at this point and seems ok. Going to close this issue but feel free to comment if otherwise :)
This rule is designed to always exist by default for if the guild is a community guild. I agree the current state of the api is inconsistent and confusing though. Going to put in a change so that this rule cannot be delete for a community to try to make the behavior less confusing.
Gesendet von Outlook fรผr Androidhttps://aka.ms/AAb9ysg
Von: Hemu @.>
Gesendet: Samstag, Februar 3, 2024 1:16:12 AM
An: discord/discord-api-docs @.>
Cc: Subscribed @.***>
Betreff: Re: [discord/discord-api-docs] 503 Service Unavailable when saving Automod Regex (Issue #6142)
Closed #6142https://github.com/discord/discord-api-docs/issues/6142 as completed.
โ
Reply to this email directly, view it on GitHub<https://g...
IMO in a future API version, the tts field should only be sent when the data is known, so other responses do not have incorrect tts values.
Complete translation of Getting Started into Spanish.
Description
Hi - we use the next-auth package to simplify the OAUTH flow with Discord
Today, we started getting 429 responses in our logs and an error message when trying to log in with discord to our application
I am at a loss for even how to troubleshoot this as it has never happened before and all of this is happening deep within the next-auth package.
I had also read within this issue that rate limits should be per-...
Seems we are actually being affected by an IP rate limit - our host shares IPs so I'm not sure the best way to resolve that...
- ## Step 1: Crear una aplicaciรณn
+ ## Paso 1: Crear una aplicaciรณn
- console.error('Error enviando mensaje:', err);
+ console.error('Error enviando el mensaje:', err);
@Tolga1452 would it be possible for you to add to the list feature? Resizing the input if it has large text input? Seems like when we want input that can be 2000 chars in that really small window it's really hard to work with.
Para permitir que tu aplicaciรณn reciba solicitudes de comandos slash (y otras interacciones), Discord necesita una URL pรบblica para enviarlas. Esta URL se puede configurar en la configuraciรณn de tu aplicaciรณn como **Interaction Endpoint URL**.
<Collapsible title="ยฟQuรฉ son las intents?" description="Introducciรณn a las intents estรกndar y privilegiadas." icon="question">

### Agregando una Interaction Endpoint URL
Si navegas de vuelta a tu servidor, deberรญas ver los comandos slash aparecer. Pero si intentas ejecutarlos, no sucederรก nada, ya que tu aplicaciรณn no estรก recibiendo ni manejando ninguna solicitud de Discord.
@hackermondev Bots get 401Unauthorized, how did you managed to make it work?
Description
I'm currently attempting to create a bot with a slash command that can iterate through the active invite codes in my discord server, and then delete them all. As I current am at the server invites limit for my server, and I need a way of deleting them efficiently. So I tried doing this with a bot with the fetch invites and using a loop to iterate them, but the API keeps triggering because I have too many invites. Please add a parameter to ctx.guild.invites(), that lets me che...
This is not an issue related to the Discord API. Please report library issues on their respective issue trackers.
Just stumbled on this issue and performed the following in my bot testing server
- Created a new channel and sent several messages in there
- Sent a bulk delete post request with postman
- Sent a fetch request to get the audit logs
audit log reason was missing
Postman deletion post request
segment of the audit log response
"audit_log_entri...
That's sounds like it. If your bot is hosted on a shared IP, other users on the same IP can misbehave and get your host IP banned. You may want to consider getting a dedicated IP.
AWS charges $0.005/hour for using their Elastic IPV4s. I tried changing everything over to IPV6, mostly my CI/CD pipeline for the bot, but what do you know? I gave my VPS an IPV4 to SSH into it for a short while and saw the bot come online. I removed the IPV4 from the VPS and the bot stopped responding. In fact, I checked my VPS and it says the bot restarted during those times! Meaning, it disconnected from Discord API because the damn thing cannot connect using IPV6! This whole thing is driv...
Mh, how will it work for the dm's display? I mean, you will be on Busy in a server and Active in DM it will make incoherent things right? And it's technically difficult to display a custom display for each user in the server because you could be in more than 1 server common with someone.
The issue is not much for DMs specifically, but for servers themselves.
To me it has zero sense having "Invisible" at our disposal but then we can't be online where we want to be "Online" and available for other users.
About DMs it's a no brainer either since I wouldn't be hard to allow the user to set his default state (that will be used across the totality of all the other servers, DMs included), and a custom one he can set for the others he want (sort of like the Server Profile window ...
Bots now can have gif avatars
Description
When sending an Execute Webhook request and provide a valid image url in the avatar_url field Discord doesn't use the image and just uses a default Discord avatar image instead of the image url provided in avatar_url or the default webhook avatar provided in channel settings.
Note: The default webhook avatar set in channel settings will appear if you don't send
avatar_urlin the request.
###...
I'm also noticing this tonight.
In addition to avatar_url, this issue is true for all external images in webhook messages.
In the image above, I put a YouTube thumbnail image in the embed.image.url, and the message didn't arrive on my Discord channel until much later.
If there is no image in the web...
With AWS charging for IPV4 $0.005/hour, it is now important to support IPV6. Small bots need to run 24/7, but they do not have any revenue source. They are run from the pockets of their developers. This cost would soon spill over to other services as AWS users try to find alternatives, which would mean, they would also be forced to charge for IPV4 use. The worst-case scenario is for us to break Discord and come up with a way to support IPV6, but this is risky and exposes our bots to malicious...
Can confirm and repro this problem.
The problem is being caused by an ongoing infra issue. Team is working to resolve it.
So yeah, this is a thing now
So yeah, this is a thing now
Description
Over the past few days sometimes (not all the time) when a user adds our bot to their server, on callback we exchange the code for a token using https://discord.com/api/oauth2/token, this step is now randomly returning { message: '500: Internal Server Error', code: 0 } for some users. We've not changed anything on our end so really confused about what to do here since it's a generic server error.
Steps to Reproduce
It doesn't happen all the time for everyone so exact ...
how to appear the profile of embed
Hi guys, I try to made a countdown with unix timestamp. I want to know if you steel implementing a solution for mobile that refresh automatiquely the composant.
Thanks for your reponse
Use cases include knowing who owns a bot for the purpose of bot list services, vet trusted applications for my anti-raid/anti-nuke bot etc.
a0c608a [message_create] Document new enforce_nonce p... - ypisetsky
Recently I added a new enforce_nonce on POST channel/messages parameter that will allow bots to opt in to having their messages deduped on the nonce parameter in a short duration.
if you want to check whether authorized user X owns application Y, you can already accomplish that by authorizing with applications.builds.read, fetching /applications/:id/branches, and seeing if it returns an error (these are from the game store days)
Will this also be supported for webhooks and especially interaction webhooks?
This endpoint is deprecated and will be removed in the future according to jake
Just chiming in that this is an undocumented, deprecated and will at some point be removed. I would caution anyone to depend on this functionality as it may be removed or changed without notice.
For those looking at this discussion, if you are using the above endpoint, and its breakage would be perilous for your app, please post here, so we can consider offering an alternative.
For those looking at this discussion, if you are using the above endpoint, and its breakage would be perilous for your app, please post here, so we can consider offering an alternative.
I was thinking about using this endpoint to verify bot owners for my bot list website but a non deprecated solution would be great.
webhooks and interaction webhooks are a bit more intricate, so nothing imminently coming for those
I've created an message, with enforce_nonce, and deleted it, and i cannot create message with same nonce with enforce_nonce enabled, saying "Unknown Message". @ypisetsky did you missed that? Or this is intended behavior?
@MCausc78 If a message was recently created with the same nonce by the same user it returns that message instead of trying to create a new message. That we don't try to recreate the message if it was created then subsequently deleted is intentional. The intent of this flow is to allow for a safe retry for message sending.
Description
I'm bringing the discussion #4070 into an issue. The points made there still stand.
I also have this unfortunate issue where I cannot localise my commands any further without seriously dumbing down or even removing locales from my bot. I am translating across more than 5 locales, more of which have fewer translations. Also, I want to point out that not all my commands are even localised, and I have a total of about 15 commands.
The catalyst for opening this was #657...
How much more of an increase do you need?
[discord/discord-api-docs] New comment on pull request #6332: Document `inventory_settings` property
inventory/emoji packs got killed a few months ago :(
npm install discord-interactions
I faced a similar issue, my bots support all 31 languages, and I have to make very small commands because otherwise they error with the aforementioned error.
Just recently, I doubled the limit with a command with 6 subcommands with 3 options (2 string with localised choices, and 1 number) for a command the likes of /convert mass, /convert length...
About 2 months ago the same command failed to register (with just 4 subcommands) as a result of being on the edge of 4000 characters and...
How much more of an increase do you need?
Is it possible to remove locales counting towards the total size? There would still be a limit in this case as locales can only exist with commands and a maximum string length is still enforced on them.
If not, we could start by quintupling the existing limit?
Only the maximum value (including localisations) counts towards the limit. It's not the sum of all of them.
Do we know how long "a short duration is"?
Do we know how long "a short duration is"?
If true and nonce is present, it will be checked for uniqueness in the past few minutes
- From the docs they're adding in this very PR. :)
It would be really cool if bots could actually share video or screen in calls.
I see this issue was closed, was this resolved?
I see this issue was closed, was this resolved? I was getting reports of this just yesterday
According to the statuspage it was.
Might need to re-open this issue then? Users are testing it and still getting back the default images. However my own testing after not using my bot for a while worked fine
Perhaps this is now a cache problem?
We recently got the endpoint for the POST /guilds/:id/members-search that got suggested here and I'm suggesting adding it to the gateway event MemberAdd, as on the rise of bots, raids, and all of the bad stuff that you don't want in your discord server. There's no way to track which invites were used for these people that come into your discord server, and for you or your moderators to take action.
Another idea that ...
If we have an invite code, we could look it up in the Invites tab and then see who owns that invite. I've been in wayyy too much communities that wished that this was a feature because it's like "who is inviting them"
It would allow a discord bot to join a voice chat and watch a user initiated stream, opening the doors for vod saving and casting.
Even after setting the limit to 999, it still only returns the most recent 25 joined members. Any other ideas?
Limit is sent through request body not query in the new endpoint.
Just started running into similar issues on a local dev machine for OAuth implementation.
Pretty much exactly same code approach:
const tokenData = await request('https://discord.com/api/oauth2/token', {
method: 'POST',
body: new URLSearchParams({
client_id: process.env.CLIENT_ID,
client_secret: process.env.CLIENT_SECRET,
code: code,
grant_type: 'authorization_code',
redirect_uri: `http://localhost:${OAUTHPORT}`,
scope: 'identify guil...
Same feature, but different API part (gateway event), and better information that's why I did it.
Doesn't #3210 also mention adding invite used to the gateway event too? ๐ค
That thread is mostly filled with the other feature request, and not the member join event.
This one is a much in-depth feature request, then that one.
Give message object in Message Delete Event can be usefull for bots who hasn't storage for logging, and other usefull things
Doubt Discord would add message content/etc to the Message Delete API event, on grounds of privacy and the fact that Message's content/etc no longer exists.
We have no plans to allow bots to view streams. Sorry for the inconvenience here. The technical complexity of this feature makes this request infeasible at this time.
We have no plans to allow bots to view streams. Sorry for the inconvenience here. The technical complexity of this feature makes this request infeasible at this time.
We have no plans to do this.
We have no plans to do this.
If not, we could start by tripling the existing limit?
We plan to double it next week. If this still isn't sufficient and the system remains healthy with this updated limit we will increase it further.
So this IS a bug? I'm part of a team developing extensions for a game engine and we are also facing this problem, please let us know if this will be solved soon. Clients using our engine are pressing for this bug fix from us... and apparently it's not a problem on our side then.
So this IS a bug? I'm part of a team developing extensions for a game engine and we are also facing this problem, please let us know if this will be solved soon. Clients using our engine are pressing for this bug fix from us... and apparently it's not a problem on our side then.
Yeah I've had the same issue, not sure if it's a bug or not.
My guess is it's to do with the relationships.read permission.
It requires approval from discord. (Not sure if the permission might have been changed...
@typpo has this been deployed? This is still happening now.
See my below request/response
Request
{
"username":"TEST",
"content":"Test via postman",
"avatar":"https://cdn.discordapp.com/attachments/1203224935456309268/1203224983002939443/ServerBadge.png"
}
Response
{
"id": "1206483171827261490",
"type": 0,
"content": "Test via postman",
"channel_id": "1203495739813007400",
"author": {
"id": "1203964802683...
1b59848 add a changelog noting future default for enfor... - ypisetsky
d8effe1 [message_create] Document new enforce_nonce p... - ypisetsky
7d2c9c1 Bump @typescript-eslint/parser from 6.7.0 to 7.0.1 - dependabot[bot]
Bumps @typescript-eslint/parser from 6.7.0 to 7.0.1.
Release notes
Sourced from @โtypescript-eslint/parser's releases.
v7.0.1
7.0.1 (2024-02-12)
๐ฉน Fixes
eslint-plugin: update peer dep for parser (#8441)
โค๏ธ Thank You
Tim Dorr @โtimdorr
You can read about our versioning strategy and releases on our website.
v7.0.0
7.0.0 (2024-02-12)
Read more about this release: https://typescript-eslint.io/blog/announcin...
As with images, it would be cool to be able to integrate an audio file directly into the embed (with all the buttons for playing and pausing...)
Testing again this morning using the following URLS;
Valid image, expiry params included - Does not work โ
https://cdn.discordapp.com/attachments/1130595287078015027/1206780063664836618/image.png?ex=65dd4084&is=65cacb84&hm=ac217a99a18d44ef234a9917951c0d25659d90235fc5c2264cff6874ed9e66c3&
Valid image, expiry params excluded - Does not work โ
https://cdn.discordapp.com/attachments/1130595287078015027/1206780063664836618/image.png
Externally hosted image - **No...
Given you recently updated the documentation surrounding the automatic refresh of URLs sent via the API - @shaydewael are you able to shed any light on this?
Please open a new issue.
Description
It was recently clarified that image URLs sent via the API would automatically refresh, if provided without the ?ex parameter.
Currently, if an image from the Discord CDN is sent to the API - the image is not displayed.
This is the case regardless if the image includes or excludes the ?ex, or if the image is inside or outside of its validity period.
Steps to Reproduce
Send the following post body to a c...
@jhgg will do - I've opened https://github.com/discord/discord-api-docs/issues/6657
Thanks.
Are messages with attachment links in the content updated, at least for the client?
you are scared if discord can be used by business then you guys need to pay ? Stop downvoting this.
Thanks for reporting this! @Bejasc this should be fixed now, can you confirm?
To close the loop on this one, support was definitely wrong in routing your ticket here. I've mentioned this internally, as they have a button they can press to fix this issue. Looks like the support rep in this case was just mistaken (sorry, it happens - but hopefully it wont in the future).
I have same bug on my discord server.
Server ID: 813554191775039549
Channel ID: 1203400596355551324
Reach out to support, @IvanNovCode
Thanks for checking this out so quickly @walruscow
I can confirm that the repro shared in the post is now working correctly.
Description
Hello
Since implementing the auto update feature for attachment link signatures on discord, I've noticed that the query params width and height no longer influence the size of images sent to discord.
For my part, I haven't changed anything in my sending process, I've always sent links that look like this:
https://media.discordapp.net/attachments/806282416364585062/981185405204463646/Inbox_tray.png?width=40&height=40
here is the difference:

Well... ahhh... yea me too lol, used a domain that looks sus. Pretty mad at that as I am not a robot
โ
Reply to ...
Description
In the latest version of the IOS app, after a period of time I have multiple users reporting that slash commands when in a direct message with ANY bot, no longer function. Commands are still working for them in guild channels. Hard restarting the discord app does not fix. A complete uninstall of the app and reinstall, does fix it temporarily but then the issue comes back a short time later.
Steps to Reproduce
This is difficult, I have it happening with 4-5 reported user...
We're looking into this. Could you also please provide your JS build number (in developer settings)?
We're looking into this. Could you also please provide your JS build number (in developer settings)?
The guys who are failing, seem to be on 216.0 app version, with dev (0) listed as the JS Build Number?
Just further to this, some of them have been able to troubleshoot a temp fix:
Settings --> General --> iPhone Storage
Select Discord and Offload App
Then select Reinstall App
Reopen Discord and Build Number will no longer be dev (0) and / commands will work
BUT after a phone reboot or possibly by time, this does revert and regress into the problem.
Hi there! Sharing some context here -
We typically design and build modmin features like this to Communities and larger servers first because these are where issues like raids are most prevalent. If a solution has been validated to solve the Communities use case and there's minimal overall risk, then we consider rolling it out to all servers.
As you noted, we did roll out a different but similar functionality to all servers to Pause Invites for a specified amount of time (https://supp...
We believe there may have been an issue related to experiment targeting on iOS. We've addressed this issue. Can you check if restarting your iOS app one more time solves the issue?
Hi @kriseldasamala!
I understand that Discord needs to monitor how this feature is used before deploying it to all guilds.
In the meantime, it may be useful to return an API error other than โMissing Accessโ on servers without COMMUNITY when we try to enable Pause invites. Now, only guilds with COMMUNITY can enable Pause invites, and it's illogical because all guilds have Cybersecurity actions. (on a non-COMMUNITY guild, the โPause invitesโ button opens Cybersecurity actions...
Closing this issue out. Users who are impacted may need to restart their app to receive this fix.
Yeah unfortunately this working was an unsupported side-effect. The width / height parameter exist for the client to pick the appropriate resized image relative to their device pixel ratio. As such, we won't be fixing this at this time.
We shipped a doubling of the limit.
7c67ca1 Bump @typescript-eslint/parser from 6.7.0 to 7.... - dependabot[bot]
Gesendet von Outlook fรผr Androidhttps://aka.ms/AAb9ysg
Von: Maisy @.>
Gesendet: Donnerstag, Februar 15, 2024 9:53:48 PM
An: discord/discord-api-docs @.>
Cc: Subscribed @.***>
Betreff: Re: [discord/discord-api-docs] Bump @typescript-eslint/parser from 6.7.0 to 7.0.1 (PR #6655)
Merged #6655https://github.com/discord/discord-api-docs/pull/6655 into main.
โ
Reply to this email directly, view it on GitHub<https://git...
Description
Whenever you have a theme selected as background in the discord app/website does it shows every embed color (the small color bar at the left) the same color.
Steps to Reproduce
- User settings
- Appearance
- Choose a theme
- Use any bots command (that has a embed message as reply) and now is every embed color the same gray/light black color
Expected Behavior
That it shows it as a normal embed with the real embed color it has
Current Behavior
I see e...
I believe the ability to customize bot banners would offer several benefits:
Improved branding and communication: Bots could use their banners to display logos, slogans, or other visual elements that represent their brand and purpose. This would help users more easily understand the bot's function and build trust.
Enhanced user experience: Custom banners could be used to provide important information to users, such as instructions on how to use the bot, links to its documentation, or upco...
I contacted developer support by email to ask if this change was intentional. Unfortunately, it seems that it is.
"Unfortunately, this is intended and you will need to request permission for this scope. You can also check this link for your reference. https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes"
It would be nice if the documentation for this is updated to reflect the change.
Fixes this issue.
The GameSDK Relationships Manager recently received a breaking change to the OnRefresh callback. After reaching out to developer support, it was confirmed that this callback now requires the target user to authenticate with OAuth2 and accept the relationships.read scope (which requires Discord approval). PR adds a warning above ...
it is not possible to perform that oauth2 authorization using the GameSDK. it's a bug that has to be fixed
Thanks for the report! Could you please provide the client version numbers and which themes you're testing with on each platform?
Since updating to verison 217 on iOS, embed colors haven't displayed. I use the Midnight theme but it also happens on Light and Dark themes. A few days before the update came to TestFlight, I saw other users talking about embed colors being gone, so I assume they were Android users who got 217 earlier.
App: 217.0 (55336) ptb; Manifest: N/A; Build Override: N/A; Device: iPhone15,2 OS 17.3.1;
also, cannot created recurring events using the discord API as of today - https://discord.com/developers/docs/resources/guild-scheduled-event#create-guild-scheduled-event
Wouldnt Knopf/Knรถpfe make more sense than Schaltflรคche. Schaltflรคche is rarely used to describe a button to be honest.
I think in the context of bots and discord we can't really use "Knopf" nor "Schaltflรคche".
Since we do have some english words in german, I'd honestly stick with Buttons.
I think in the context of bots and discord we can't really use "Knopf" nor "Schaltflรคche". Since we do have some english words in german, I'd honestly stick with Buttons.
Yea thats what I thought just wasnt sure if they want to have buttons translated. Buttons would honestly be the best fit.
O
Gesendet von Outlook fรผr Androidhttps://aka.ms/AAb9ysg
Von: Jiralite @.>
Gesendet: Sonntag, Februar 18, 2024 8:34:38 PM
An: discord/discord-api-docs @.>
Cc: Subscribed @.***>
Betreff: Re: [discord/discord-api-docs] Update settable flags when responding to interactions (PR #6672)
Duplicate of #5976https://github.com/discord/discord-api-docs/pull/5976.
โ
Reply to this email directly, view it on GitHub<https://git...
Hi, bulk message delete audit logs will get merged into one if there was another one created not too long ago. So it's most likely that you tried a bulk-delete with no audit log reason and subsequent ones, even with reasons got merged into that audit log entry with no reason. One way to try it fresh is to try again in another channel where you didn't bulk delete yet from. If you're able to reproduce this issue despite that let us know. Will close for now as I couldn't reproduce this issue b...
Description
The documentation states that the POST /channels/{channel.id}/messages/bulk-delete endpoint supports the X-Audit-Log-Reason
https://discord.com/developers/docs/resources/channel#bulk-delete-messages
However, it is clear that when I try this, no reason is actually being attached to the audit log.
This issue was created over a year ago here, however it was closed despite the issue still occurring and [repro...
I think that would fit really well, and they could probaly reuse an already existing color picker on other parts of the site.
may work a bit of modification though
Also it is a bit odd that registering RELATIONSHIP_UPDATE event still works without any auth, but GET_RELATIONSHIPS command requires relationships.read.
I just ran into this as well. Same command works fine in public channel but not in a thread.
One additional data point if it helps... I tried removing the setRequired(true) from my command to see if that would help. It still doesn't accept the file upload but it shows a different error. Instead of This option is required. Specify a value it now says Not a valid value.
:
NoSuchKey
The specified key does not exist. No such object: discord/stickers/id*.gif
Example URL:
https://cdn.discordapp.com/stickers/id*.gif
If it was a PNG Sticker, the URL will work normally:
https://cdn.discordapp.com/stickers/id*.png
* I have omitted the actual ID in this report.
Steps to Reproduce
- Create a GIF sticker in a Discord server
- ...
GIF stickers won't follow the same URL scheme as sticker types stored on the CDN. You can find them via:
https://media.discordapp.net/stickers/<sticker_id>.gif.
GIF stickers won't follow the same URL scheme as sticker types stored on the CDN. You can find them via:
https://media.discordapp.net/stickers/<sticker_id>.gif.
Thank you for clarifying this. It is indeed working. Does this affect all GIF-type media, or just stickers?
The docs need to be updated with this information.
c6b0575 Update character limit for slash commands (#6668) - AlmostSuspense
I think you are very right. The code written for such a system needs to be simpler and more stable. We are now in a period where many servers are making their own special systems, and it seems ridiculous that such a code, which should be very simple, is so complex. According to what you said, the fact that it is not stable is a big problem.
2c39db9 GameSDK Relationships now requires OAuth (#6671) - bremea
This isn't possible to do so this merge feels incorrect.
@Puncher1 wanna clean this up and get it merged?
I can confirm this is still occurring. I recently encountered this when trying to send requests from Roblox through a proxy and blindly copied the User-Agent.
I do agree with this 100%, and I've created my detailed feature request going over on how to properly do that and some examples.
It shouldn't be this complex to get what invite a member is joining off of, for security purposes to report them or anything like that. With the rise of security updates over the past years, I would assume this would be one of them?
@colcrunch I'm guessing Discord is trying to preserve privacy of users who opt out of analytics (as in, the server admins don't get to learn who does and doesn't have the box checked). If they showed a number here, then you could deduce which people have analytics turned off by seeing what happens to the number when they join the server.
Maybe just reporting "you're halfway to the 500 people you need to enable server insights" or "you're 3/4 of the way" would be a good compromise. I don't ...
@pchiusano yeah, it is very possible that is the reason. But literally any indicator would be more useful than none. You could even delay the calculations by some period of time to make sure you can't link a member joining or leaving to a change in the metric that shows you how far you are from actually getting any insights.
Hello ๐
Cryptocurrency Scam/Fraud Tracing & Recovery experts. If you have been the
victim of crypto fraud, we can help you trace and recover it for you.
Send HELP to this recovery Agents Below
EMAIL: @.***
TELEGRAM: t.me/bit_FlipcontractorsAgent
If you know or Have any Victim kindly share this information Thank you for
your cooperation
On Wed, Feb 21, 2024, 7:33 PM lychee @.***> wrote:
image.png (view on web)
<https://github.com/discord/discord-api-docs/asset...
Description
accentColor will show null after being fetched if the user has not explicitly set a banner color on their profile or set a banner.
Steps to Reproduce
- Fetch a user who hasn't explicitly set a banner color or banner image
Expected Behavior
accentColor should return the color that Discord has automatically assigned
Current Behavior
accentColor returning null
Screenshots/Videos
Top user has explicitl...
if the user hasn't set an accent color, the color is computed client-side using the avatar image data
if the user hasn't set an accent color, the color is computed client-side using the avatar image data
That's correct however it should still be placed in the user object. The automatically generated color is still shown in settings making it no different than a manually set color.
<img width="158" alt="image" src="https://github.com/discord/discord-api-docs/assets/77032942/46397671-a410-4ee8-aa61-83ce32fc0c51">
Description
When deleting a guild role, error code 10011 Unknown Role is returned even though the role was successfully deleted. This only seems to occur for very large servers. I can consistently reproduce it on a server with 300k members. For other servers, the delete works as expected.
Steps to Reproduce
Create a new role, confirm that it exists, attempt to delete the role, catch the 10011 error code, and then confirm that the role was actually deleted.
Expected Behavior
D...
In discord a user controls their own status. it is not really designed to be a work platform, I wouldn't want some bot to update my presence especially not my global status.
what you need is something more like RPC. You can do this via RPC from the meeting app.
For those looking at this discussion, if you are using the above endpoint, and its breakage would be perilous for your app, please post here, so we can consider offering an alternative.
Working on app where I need to verify a user's relation to a bot, would be great to have something officially supported, and also maybe a route to view a user's apps.
For those looking at this discussion, if you are using the above endpoint, and its breakage would be perilous for your app, please post here, so we can consider offering an alternative.
Working on app where I need to verify a user's relation to a bot, would be great to have something officially supported, and also maybe a route to view a user's apps.
I also need this to confirm that someone owns a bot.
Discord should really correct voice logs, on large servers it's impossible to determine precisely which staff has actually moved or disconnected another member. Not to mention that Discord still hasn't implemented the missing audit logs concerning the reorganization of channel order and roles. I really doubt that solving the audit log problem would require a lot of resources and development time. What are the folks at Discord up to?
What is the best method to get a bot & user's mutual servers, assuming that we have access to both the OAuth2 Access Token or Bot Token, also considering rate limiting, and no access to gateway?
Current concept:
const guildsRes = await fetch('https://discord.com/api/users/@me/guilds', {
headers: {
Authorization: 'Bearer ' + session?.user.access_token
}
});
if (!guildsRes.ok) {
throw new Error('Failed to fetch guilds');
};
...
I am also seeing this issue. I have the colors working on desktop but on IOS I do not see any embed colors
You are right Discord is not work platform. But you are missing something. Bot cannot change your presence unless you give it permission. If you dont gave it permission then it can not change your status.
Same on Android using the automatic theme; no colours displayed on embeds.
App: 217.15 (217015) googleRelease; Manifest: N/A; Build Override: N/A; Device: OS 34;
Description
This issue has been redirected to here because that's not a discord.js issue.
Redundant MESSAGE_UPDATE events are emitted in specific cases.
I have found that this bug:
- Only affects large guilds and bot users.
- Cannot be reproduced for some bots (e.g. I can reproduce it by using
270904126974590976but not235148962103951360).
Steps to Reproduce
We will use discord.js to simplify the steps to re...
Thank you for pointing this out, but I am going to close this as not a bug since these message updates are not erroneously updating the message state. I will check internally to see if optimization on this is planned to avoid sending these unnecessary packets.
When an application does not acknowledge an application by using the /callback endpoint, the webhook endpoints for followup edits / deletes / sends fail with the response code UNKNOWN_WEBHOOK.
I think the developer experience would be improved significantly, if this error would indicate that the webhook does not work without acknowledging the interaction. I think there already is logic in place to stall the request for 3 seconds, so changing the error for this should be possible.
Was not able to reproduce this locally, am seeing the audit log reason header respected and creating a corresponding audit log entry with the reason.
I think there's something afoot here, re-opening for investigation.
reproduces for me:
await _bot.http.request(discord.http.Route('POST', '/channels/{channel_id}/messages/bulk-delete', channel_id=_channel.id), json={'messages': ['1211611772830883860', '1211611774231781439']}, reason='test 123')
await _bot.http.request(discord.http.Rou...
A fix for the mobile issue has been merged, but wont be on our stable release until next week. Once you upgrade to version 219, it should be fixed. I still can't repro the desktop issue, but if that's still affecting you, please open a new issue with the version info and theme for the desktop client you're experiencing it on so we can take a look
Yeah sorry the way we were reproducing this in a test environment did not exhibit the issue.
Any updates on this suggestion?
are you able to reproduce this issue not using a library like discord.js and only using CURL for example? it seems to me this is an issue with retries
Another really similar issue that is probably related so will post this here
When a bot deletes a message no audit log is getting created whatsoever
Steps to reproduce:
- create a new channel (to make sure the log does not get merged with a previous one)
- send a message
- delete the message via the rest API with a
X-Audit-Log-Reasonheader - get audit logs for the guild/check in client - no log is created
 whereas defining a var every time I call it now works fine indefinitely again. I am guessing it must be a lib quirk so closing this issue.
Description
In Developer Docs > Reference, the formats table shows a structure and example. The example for a user mention is rendered as a link with a mailto uri, specifically mailto:@80351110224678912
Steps to Reproduce
Visit Developer Docs > Reference and view the Formats table.
Expected Behavior
The user mention example is rendered as plaintext ``, like other mention examples.
Current Behavior
The user mention example is rendered as a link `mailto:@80351...
8de8a02 elevate required permissions for guild prune (#... - ayubun
f0bcc6c elevate required permissions for guild prune - ayubun
0763179 Revert "elevate required permissions for guild ... - shaydewael
Reverts discord/discord-api-docs#6685
4d7ee1e Revert "elevate required permissions for guild ... - shaydewael
a14cb36 Revert "elevate required permissions for guild ... - ayubun
[discord/discord-api-docs] Pull request opened: #6688 add `MANAGE_GUILD` requirement for guild prune
the previous PR was merged unintentionally ! it can be found here: https://github.com/discord/discord-api-docs/pull/6685
Description
When sending a video embed via the webhook api, the video is not displayed at all, and instead an empty embed is displayed.
Steps to Reproduce
Send a request to a webhook with this payload:
{
"embeds": [{
"video": {
"url": video_url
},
}]
}
Expected Behavior
Should display the video as an embed to discord
Current Behavior
Empty embed shows up.
Screenshots/Videos
Client and System Informatio...
Video embeds cannot be directly set when sending a message.
Oh man, above and beyond here!!! I was just trying to add a 3rd field and stumbled across this list. My modal called for a title (short text), description (long text), and I wanted to add a 3rd field for a url (short text) and couldn't figure out what broke (it was the 3rd field) but I stumbled on this thread and I would have a use for most of these as well!
Also better descriptions of the errors from the discord response would have been immensely helpful, it just said something about being "45 or fewer"...
fields? great. i had 3.
characters? i never got to a point to enter any.
children sacrificed into volcanoes to appease the dev gods and give me a more definitive answer? you got me there.
Description
In both light and dark mode, StringSelect boxes that allow multiple choice have the "Select" button colored in such a way that it's difficult to see. I've been asked to submit this here by a user on the Discord Developer discord server.
Steps to Reproduce
Any multiple choice StringSelect on mobile (both ios and android)
Expected Behavior
When an option is selected, the Select button should appear more clearly.
Current Behavior
The Select button does not chan...
It is very simple technically, you just have to change the parent of the message. However it seems to be very complicated to get discord to do any improvement requested by their users.
Description
Hello there,
I stumbled upon a problem with Message Embeds in the discord API.
Using the Java Discord API I am creating a message Embed containing a title, description and an image. However, on about 50% of the cases the image does not show up in the embed.
Steps to Reproduce
Using the Java Discord API I am creating a message embed as follows:
EmbedBuilder embedBuilder = new EmbedBuilder();
embedBuilder.setImage(post.getImageUrl());
...
Additional information:
Sometimes just posting an Image Link also doesnt seem to be rendered:
Posted it twice, the first one was not rendered, all subsequent ones were without problem.
Additional Information:
Uploading the Image and referencing it in the Embed works fine every time. So the problem seems to be related to external links. I really don't want to upload a bunch of files to discord when it is not needed, since everything is already online on the respective website.
@appellation so video type embeds don't work via webhook? what about gifs (gifv in this case)?
<img width="1013" alt="image" src="https://github.com/discord/discord-api-docs/assets/7217420/915598a6-c5b3-4bf2-bef1-63a515ed6d5d">
Only rich embeds are allowed.
Description
IPv4 address space is exhausted hence it is getting harder and harder to connect to an IPv4 network. IPv6 networks are becoming more and more common, so much so that some ISPs and some data centres are IPv6-only.
Steps to Reproduce
Connect to discord.com on an IPv6-only network
Expected Behavior
Discord can be used normally
Current Behavior
Discord cannot be used at all
Screenshots/Videos
No response
Client and System Information
any
Currently banning a Member, who has already left or been removed, from a Guild does not respect the delete_message_seconds param - and thus does not delete their recent messages.
It would be nice if the delete_message_seconds param could be respected (when given) even when the Member being banned has already left the Guild.
Example cases of this could be when a Server Moderator forgets to include the option to delete the Member's recent messages, due to wanting to quickly remove the...
We are considering adding this in the following weeks. To the community, would you prefer this to be the new default behavior, or would you want an optional parameter (default to false) that would enable this clean up.
My opinion, the fact that delete message days doesn't work when the user is gone from the guild, sounds like an unfortunate side-effect of how things currently work.
So, if we were to do this, we would just "make it work" the way you want. Looking for any dissenting o...
We are considering adding this in the following weeks. To the community, would you prefer this to be the new default behavior, or would you want an optional parameter (default to false) that would enable this clean up.
My opinion, the fact that delete message days doesn't work when the user is gone from the guild, sounds like an unfortunate side-effect of how things currently work.
So, if we were to do this, we would just "make it work" the way you want. Looking for any dissenting o...
I vote for it being the new default behavior, since that's what I'd expect to happen anyway (and it's not documented otherwise?).
I personally don't see a reason why it shouldn't delete messages from users who have left the server as long as you tell it to. Would consider its current behavior more bug like/unexpected.
i guess this pr is dead since clyde was discontinued, lol rip
I'm going to also write about the updated semantics here, so that people are aware.
In the past, deleting a role would require scanning over all the members in a server to check who has the role before deleting the role. For large servers, this would end up taking a large amount of time, and timing out the API request (even though our backend still tries to complete it.)
Now, when the guild is large enough, we will perform the deletion of the role synchronously, while the cleanup of the...
@LordTylus are you able to reproduce this with all external hosted images or just ones hosted on www.twinsdragonscomic.com?
I'd be inclined to believe if you didn't want to delete messages if the member has left, you wouldn't set a value for this prop in the first place.
@sklein12 certainly not on all.
I can consistently reproduce it with twindragonscomic.com and savestatecomic.com
Both seem to run on WordPress. The owners are independent and they have independent servers as well.
I tested it with image links that point to Tumblr's cdn and those work just fine. And image links pointing to DeviantArt also seem to work without issue.
These WordPress pages aren't the quickest to respond. And if they work it takes a few good seconds till the image a...
I think most people expect the default behavior to delete messages regardless of whether the user is still on the server or not at the time of placing the ban. UI doesn't give away that it's not currently the standard behavior anyway so changing the default behavior to "delete messages regardless of the banned user's presence in the server" makes way more sense since you'd avoid generating unnecessary confusion to server moderators across the entire platform.
A quick scan of the code indicates that we'd timeout after 5 seconds. In my playing around right now, the images load pretty instantly and are unfurling very consistently. Its possible that when this site is under load it fails to respond within 5 seconds and we give up
This is rather odd.
When it works I never had to wait 5 seconds. It took a like maybe 1 to 2 seconds. When I download the picture first via OkHttpClient and upload it, its also always like 1 second. (Gut feeling I never measured it)
Opening an image in browser without cache also seems to be rather quick. I can run additional tests tonight, where I take more exact time measurements. And not just gut feeling.
Plan is I download a picture via OkHttpClient 20 times to see what the min...
Description
GUILD_AUDIT_LOG_ENTRY_CREATE event payload contains type mismatch for role color update for new_value and old_value values. Up until yesterday both were of type bigint but suddenly old value is int and new value is of string type (from my observation).
Steps to Reproduce
- update any guild role with new color
- watch incoming payload from GUILD_AUDIT_LOG_ENTRY_CREATE event
- see type of
new_valueandold_valuevalues
Expected Behavior
both old and new...
Hello there again,
sorry for the long wait. But I have conducted a few more tests:
First I attempted to send the same picture 20 Times with little to no delay in between.
The result was, that out of the 20 times. 5 were successful 15 failed.
Running the test again resul...
Just want to update everyone here that after reaching out to support, I was sent the following:
We've reached out to our engineering team and there was a change to access the scope you are referring to and just to clarify that this is not a bug. Unfortunately, we cannot grant access to this scope [relationships.read] at this time.
Not really sure where to go from here. This renders this entire feature of the GameSDK as unusable. Public clarification would be appreciated.
We're pretty sure we know what broke, looking into a fix now
This is incredibly helpful, thank you. We will continue to investigate on our side
This issue can be closed now, I've re-tested this and it works, thanks :)
This time, some of the previous images were displayed correctly. Others, however, were no longer:
It sounds like you're saying here that some that previously loaded were no longer loading, but the list of images that didn't load
"https://www.twindragonscomic.com/wp-content/uploads/2022/11/Twin_Dragons_368.png",
"https://www.twindragonscomic.com/wp-content/uploads/2016/04/Twin_Dragons_036.png",
"https://www.twindragonscomic.com/wp-co...
I double checked it just now. You are right I thought it loaded one less, but apparently it didn't.
However, I just ran this test again. And you are right, it could still load all previous images and 1 extra. So now only
"https://www.twindragonscomic.com/wp-content/uploads/2016/04/Twin_Dragons_036.png",
"https://www.twindragonscomic.com/wp-content/uploads/2018/12/Twin_Dragons_174.png",
it couldn't load.
I guess Ill have to use a differen...
Ya so we cache successes for a day and we cache failures for 5 minutes. So that explains both why you never see things that used to succeed start to fail, and why testing a single image 20 times with no delay after it failed once failed all 20 of them.
As for why its failing to begin with.. unclear still. Our tracing shows that we are indeed timing out when trying to fetch the images, but its not clear why yet.
Hey, unfortunately we're not accepting this PR given the removal of the ?'s.
I'm closing this PR for now, feel free to open a new one minus that modification if you'd like to land the other changes.
ecb5818 fix: update uri for Tempest lib in community re... - amatsagu
35a75ab Document GitHub webhook supported events (#6586) - advaith1
Description
Hello, when one of my users ran one of the app commands in DMs with the bot it says Unknown Integration despite sharing a mutual server.
Guild ID: 1171977315799011449
Bot ID: 1171978975866793984
Steps to Reproduce
Didn't log any errors or anything so nothing here.
Expected Behavior
It should execute the command correctly by adding the creator to the watchlist, but instead it doesn't function at all.
Current Behavior
Works for me, although for new users t...
I think this is expected to happen?
It's likely the user(s) having the issue doesn't have DM messages enabled from non-friends.
User Settings -> Privacy & Safety -> Scroll down to

You can reproduce the "Unknown Integration" error message if you turn that option off ^
Ya can you make sure that they don't have this setting turned off either on this server or for their entire account?
Description
When adding a super reaction to a message 2 reactions are added instead - one burst & one normal
Steps to Reproduce
- add a burst reaction to a message
- see that it has 2 reactions - 1 burst & one normal
-
- might need to reload the client to appear
-
- or get the message through the API
Expected Behavior
Only a single burst reaction is added
Current Behavior
One burst and one normal reactions are added
Screenshots/Videos
I think this is expected to happen?
It's likely the user(s) having the issue doesn't have DM messages enabled from non-friends.
User Settings -> Privacy & Safety -> Scroll down to
You can reproduce the "Unknown Integration" error message if you turn that option off ^
Can confirm they did not have this on.
Sounds like the issue is resolved then :)
Sounds like the issue is resolved then :)
Sorry, I meant they did have it on, they had DMs on.
The Select button does not change, and still appears disabled
@danj1980 , to clarify, you're saying that the Select button appears disabled but is not actually disabled, right? In other words, the button is still pressable? (I recognize that the disabled-color would still be a bug here even if the button is pressable)
Oh I see. And youre sure they also don't have that setting off for the specific server?
<img width="436" alt="image" src="https://github.com/discord/discord-api-docs/assets/278810/2eeca79c-146d-46e0-8cbc-b3404d7f7609">
Description
The GET /webhooks/ Endpoints are not documented as requiring any Server Permission, yet trying to fetch a Webhook owned by the App/Bot calling the endpoint, while said Bot doesn't have the MANAGE_WEBHOOKS in the Channel/Server the Webhook is in, results in a "Missing Permissions" error.
This can also affect App-owned Webhooks created via OAuth, in addition to created via the standard Bot API.
Ste...
Oh I see. And youre sure they also don't have that setting off for the specific server?
<img width="436" alt="image" src="https://github.com/discord/discord-api-docs/assets/278810/2eeca79c-146d-46e0-8cbc-b3404d7f7609">
Yup.
Thanks for the bug report, @danj1980 ! This will be fixed in the mobile apps in major app version 221
Im not really sure what the issue could be at this point with digging more into the specific user. Can you have them send a support ticket that links to this github issue?
i am having the same issue message update is sending me message update event after hours and that too in bulk
i have a bot which listen to message update event and do calculation based on the message and save to database then send to same channel
but idk its working fine
but its sending old embeds message and updated database and there is no error in my console i checked my code and no errors
normally it works like :
, and it was discovered that this does not happen on canary, which is very weird. Another user was however able to repro on ptb as well.
Steps to Reproduce
...
Can reproduce this using PTB. Not with Canary.
I CR this on PTB only: ptb 273564 (5adb3aa)
Seems this has started working again, but something was definitely broken in the timeframe from this report to somewhere between then and now. May have stopped working earlier as well
Simple temporary solution for users
You may be interested in this comment: https://github.com/discordjs/discord.js/issues/10153#issuecomment-1986379529
This is back to not working as of ptb 273760 (d502c7a)
@appellation Its back! Same erro here as well on PTB 273760 (d502c7a)
Today I had the same problem and I concluded that the way to solve it is by asking the user to use the command on the server and then in the DM, also test it, I believe it will work
Could the error for this be improved? There is no way to know what the issue is, since both the documentation and API error make no mention of the actual requirements.
No commands either on the same PTB version
Context: A bot that migrates chat history from another chat service that supports threaded discussions, to a Discord guild.
Problem:
Discord allows 1000 active threads guild-wide, but there is no way to programatically mark a thread as "inactive". This breaks chat migration bots completely as they are able to hit the limit before the lowest archive setting (1 day). Additionally, manually marking a thread programmatically as "archived" still counts toward the active thread limit. The only ...
Has this been changed? Recently only encountered this problem one and never had it again and I keep adding more commands.
Beside the fact of discord being a despicable piece of trash, both in UX and in UI,
I discovered today that, to my unwilling and unknowingly surprise, this piece of nasty spaghetti code, likes to show to everyone in my status that I'm "playng Eraser", which is nothing else than a file deletion software (https://eraser.heidi.ie/).
Now we use it (because I'm forced to, otherwise I would nuke it down and DDos its servers it 24/7 if it was for me) in a work environment and someone warned me abo...
The character limit for Slash Commands was increased yea, as per #6668
you've set max length as over 45.
Additional Testing
Send a message with the following settings:
- The sender is a bot user.
- The message is being sent to a text channel of a large guild.
- The message contains a rich embed with an image.
We should log both MESSAGE_CREATE and MESSAGE_UPDATE events in this time.
./debug.json
[
{
"t": "MESSAGE_CREATE",
"s": 4492,
"op": 0,
"d": {
"type": 0,
"tts": false,
"timestamp": "2024-03-11T14:12:48.454000+00:00",
"reference...
This really shouldnt be happening, but its pretty difficult to debug from the app's end. If you can submit support tickets (feel free to mention this github issue and my name in the ticket) we might be able to figure out whats going on. For now though Im going to close this issue.
Please include the banner of guild when fetching server data from /users/@me/guilds.
Can you elaborate on your use-case?
At the request of the Russian supervisory authority, Discord started blocking some guilds for users with Russian IP addresses.
It looks like this:
However, bots have no ...
I'm making a website with dashboard for a bot. I can surely can do fetching the server data from the bot. But It makes my API slower and more complex. And I think it would much more sense to have banner property within the /users/@me/guilds route's response.
Description
The banner is always null on bot accounts, even if the bot has one configured
Steps to Reproduce
PATCH /users/@mewith a bannerGET /users/@meGET /applications/@me
Expected Behavior
the banner containing the hash of the banner
Current Behavior
null
Screenshots/Videos
 said there was a limit to that. The example I copied from had the max length set to 300 and that example worked fine, but that max length is the length of what you are capturing in the modal input, not the text you give as a descriptor displayed on it.
It ended up being the text I had in the description field was more than 45 characters.
Nothing in the docs (that I saw) said there was a limit to that. The example I copied from had the max length set to 300 and that example worked fine, but that max length is the length of what you are capturing in the modal input, not the text you give as a descriptor displayed on it.
Description
Hi,
GUILD_MEMBER_UPDATEs are a big problem for large discord bots. A quick primer is when a Large bot updates anything todo with it's profile (https://discord.com/developers/docs/resources/user#modify-current-user) this triggers a GUILD_MEMBER_UPDATE to be sent for every single guild associated with that session across all sessions. I cannot understate how much traffic this is all at once. Especially for bots in Millions of servers. This often overloads underlying hardwa...
@kyranet we are still figuring out how we want to handle deprecation on that. i can see a world where if you specify intents the opcode will ignore the parameter if you pass it and do not have the intent.
also for any library developers watching this thread we also are considering deeper changes to guild members with intents sooner than later (in light of recent abuse patterns we've been seeing). if we end up moving this direction members intent will have similar limitations ...
Description
When a thread is created and you're inside it, if the first message is updated within the thread, it won't be updated for other clients on mobile. This is very inconvenient; this bug only occurs on mobile phones; on PC, the message is updated correctly.
Steps to Reproduce
Write a message in a channel with one account, create a thread on this message, and go into the thread with another account. With your main account, update the first message (from the parent channel), ...
this has been on canary for a couple of days without any experiments.
This would be really cool and handy to have!
I also need this, comment here to receive notification
This was added to the member object in #5874 and expanded upon in
#5881 but never added to the guild member update gateway event.
It would make sense for bots to be able to access user status and user activities because bots can already access stuff like servers, text channels, and so on.
For instance, when making a request to the /users/{user.id} endpoint, instead of receiving only basic user information like:
{
"id": "80351110224678912",
"username": "Nelly",
"discriminator": "1337",
"avatar": "8342729096ea3675442027381ff50dfe",
"verified": true,
"email": "nelly@discord.com",
"flag...
There's already OAuth Scopes (specifically activities.read) for being able to read/get a User's activities. Though, as the docs state, that OAuth Scope is not available for public use.
While OAuth2 can be a way to get user activities, working with OAuth2 is a pain, and bots can be an easier way to read activities in my opinion. And we wouldn't need a database to hold client secrets.
btw it is already in the OpenAPI specification, it should also be in the API documentation
Description
When editing an interaction reply or following up to one with a channel select menu which has a forum post as default_values channel ID it results in being sent multiple times and causes an Internal Server Error.
Relevant error stack trace:
2024-03-17 20:42:02 - ERROR - HTTPError: Internal Server Error
2024-03-17 20:42:02 - ERROR - ...
This endpoint has some interesting pitfalls when a user is not banned.
- If a user was already banned, they are in the "failed_users" array
- If you don't have permissions to ban a user, they also appear in failed users
- If all users "failed" you get an error response instead
- The endpoint filters out the self user (does not show up in either array)
I'm not sure about the nullability on the response, based on the API spec they are both optional fields. But it seems to always return...
Ban up to 200 users from a guild, and optionally delete previous messages sent by the banned users. Requires both the `BAN_MEMBERS` and `MANAGE_GUILD` permissions. Returns 200 response on success, including a field `banned_users` with the IDs of the banned users and `failed_users` with all that were not be banned. The list of `failed_users` will also include all users that were already banned.
I'm seeing similar behavior while adding/removing roles. The audit log exists, but sometimes the changes do not actually seem to happen like the audit log suggests. I'm primarily seeing this in a server with a lot of roles and members. I think one of the servers is actually nearing the role limit.
Happy to provide specific details to someone if it is needed.
Description
I have a private bot that runs on a single server that suddenly is having a very poor performance to send messages to channels. I believe it started in the past few days.
If i use the same bot (same code and same bot api key/secret) on my test server it behaves normally (around 130ms - 300 ms) to send a message thru the api.
When in the live server it takes sometimes over 10 seconds to send a single message, average 2 full seconds.
I am not being rate limited, maybe some...
Ban up to 200 users from a guild, and optionally delete previous messages sent by the banned users. Requires both the `BAN_MEMBERS` and `MANAGE_GUILD` permissions. Returns 200 response on success, including a field `banned_users` with the IDs of the banned users and `failed_users` with all that could not be banned or were already banned.
This, with the new username system I was hoping we'd get at least one good thing out of it and be able to determine if they were actually deleted after the forced migration. But no, deleted users are now Twitter handles as well.
Activities are here! ๐ ๐ ๐ ๐ ๐
Docs for our developer preview of https://discord.com/build/embedded-app-sdk
This PR will be merged without comment.
going out later today
- docs for user install apps
- change log for user install apps
- new interactions and overview of apps pages
2626578 Developer Preview Docs for Activities (#6722) - colinloretz
4e63e87 Added Spanish, LATAM to Reference.md (#6577) - KernelFreeze
4efb710 Add Attachment CDN params (#6650) - shaydewael
d8effe1 [message_create] Document new enforce_nonce p... - ypisetsky
7c67ca1 Bump @typescript-eslint/parser from 6.7.0 to 7.... - dependabot[bot]
c6b0575 Update character limit for slash commands (#6668) - AlmostSuspense
1eaa1af Add docs for user-installed apps (#6723) - shaydewael
- Rename SDK Starter Page to Game SDK Getting Started
- Update backlinks to SDK Getting Started
a07ae5c Rearrange/backlinks to Game SDK docs (#6724) - colinloretz
This is intentional, unfortunately it's not possible to securely support this without a breaking change
huh? can you elaborate? what breaking change? how does supporting PKCE here break any existing functionality?
the role connections api unfortunately does not require a bot token, it expects that bearer tokens are only used by the app. PKCE allows users to generate their own bearer tokens without the client secret, which would introduce security issues if it worked for this scope.
if the endpoints required both a bot token and a bearer token like some other endpoints, then it would be fine to support implicit grant and pkce, but unfortunately it was too late to change that by the time this issue wa...
Add missing integration_types_config field from Application structure to Application Edit endpoint parameters.
7219750 Add integration_types_config to params of Appli... - FedorLap2006
ecb5818 fix: update uri for Tempest lib in community re... - amatsagu
35a75ab Document GitHub webhook supported events (#6586) - advaith1
2626578 Developer Preview Docs for Activities (#6722) - colinloretz
1eaa1af Add docs for user-installed apps (#6723) - shaydewael
a07ae5c Rearrange/backlinks to Game SDK docs (#6724) - colinloretz
438ded2 add MANAGE_GUILD requirement for guild prune ... - ayubun
clarifies new commands for contexts
00a67f7 clarify to command create (#6728) - shaydewael
Description
When triggering interaction from within a bot's DM, authorizing_integration_owners[GUILD_INSTALL] contains a number, instead of a string
Steps to Reproduce
- Register a command with
GUILD_INSTALLintegration type - Prepare the session and listen for events
- Trigger the said command in bot's DM
Expected Behavior
A string value, in this case "0"
Current Behavior
A number (i.e. 0)
Screenshots/Videos
No response
Client and System Infor...
Description
When Getting Started got moved, LocalePicker (and potentially the rest of the languages) didn't get adjusted accordingly.
Steps to Reproduce
Go to getting started, switch to any language, then back to English
Expected Behavior
Enligsh Getting Started
Current Behavior
404
Screenshots/Videos
No response
Client and System Information
Stable docs
Does what it says on the tin, this will cause ci to fail until #6732 is merge
I have a server with webhooks set up, with the intended use being for a game client to send posts via the webhook.
Recently, some unknown users have abused the webhook and have been spamming messages that are pinging @everyone and @here.
As this is a community server, I can't easily find out the individual user that has been abusing the webhook - it's possible that a banned user, or even someone that isn't in the server was given the webhook and has been spamming it.
From what I can tell...
webhooks urls are not intended to be public information. we can't really support cases which involve exposing it.
webhook urls are not intended to be public information. we can't really support cases which involve exposing it.
Would it be possible to allow roles/permissions to be applied to the webhook bots? I'd imagine that the default behaviour would remain if not assigned roles, but role permissions would override them.
Would it be possible to allow roles/permissions to be applied to the webhook bots? I'd imagine that the default behaviour would remain if not assigned roles, but role permissions would override them.
This isn't something that should be done in discord directly. You're handing out a private key as public information. You should instead create a service that receives webhooks, and posts them to your discord webhook, ensuring that allowed_mentions (and any other properties you want to force to a specific value) is set to not allow this to happen.
I wouldn't have the faintest idea how to do any of that and I couldn't find any existing bots that can..
I'm experiencing this issue as well.
This isn't something that should be done in discord directly. You're handing out a private key as public information. You should instead create a service that receives webhooks, and posts them to your discord webhook, ensuring that allowed_mentions (and any other properties you want to force to a specific value) is set to not allow this to happen.
This pull request documents the addition of the integration_type parameter to the OAuth2 Authorization URL. This parameter specifies the installation context for the application, either within a server context (GUILD_INSTALL) or within a user context (USER_INSTALL).
Changes Made
- Added
integration_typeparameter to the OAuth2 authorization URL example. - Provided explanation about the purpose of
integration_typeparameter and its values.
Description
When copying a slash command via iOS app - and then pasting it - the app only pastes the argument/parameter name of the first parameter (if even), causing all subsequent parameters to be shoved into the first parameter.
Steps to Reproduce
Find a slash command that has more than one argument.
Use it - then copy the command
Paste it -
Observe.
Eg:
I have the following
/imageedit imageurl: https://image.com blur:0.5
Pasting it seems to do:
/imageed...
Description
I am Reciving everyting until the opcode 4 but when i try to send the data the udp receives it but nothing happens tried with a discord bot library and the intents are correct and the bot can speak he has the permission
Steps to Reproduce
import socket
import struct
import nacl.utils
import json
import asyncio
from pyogg import OpusEncoder
from nacl.secret import SecretBox
import websockets
from Crypto.Cipher import Salsa20
import struct
import subprocess
imp...
I can reliably reproduce this error for my bot. As another concluded in this thread, fundamentally it's not an issue with discord.js. Discord's API is giving you an HTTP 404 because it can't find the interaction for what is very likely a legitimate reason. In my case it comes down to Node.js processing capabilities and the interaction between two of my bot's commands, one deferred and one not.
I have a CPU-intensive command that constructs and attaches an image. At the high end this comman...
Has this feature been forgotten? @shaydewael what's blocking this?
Type GetApplicationInstanceConnectedParticipantsResponse does not exist.
Hello, Someone have an suggest of how to get the bot and user guilds in js
Description
global_name is documented as required but some gateway messages don't have them. I think this is related to https://github.com/discord/discord-api-docs/issues/6463.
Steps to Reproduce
I haven't tried to reproduce this yet. I'm not even sure why this got sent as a MESSAGE_UPDATE rather than a MESSAGE_CREATE -- probably because the embed? I think I can reproduce this by sending a webhook message w/ an embed but I haven't confirmed that. Maybe it has to do with the g...
Description
Under Application Command Structure, both the new integration_types and contexts fields are documented as non-nullable and with defaults.
If you create an application command that doesn't specify:
integration_types: it will be[0](as the documentation says: "Defaults toGUILD_INSTALL (0)")contexts: it will benull(despite ...
Description
authorizing_integration_owners is documented as having string keys that map to string IDs:
- If the key is
GUILD_INSTALL("0"), the value depends on the source of the interaction:
- The value will be the guild ID if the interaction is triggered from a server
- The value will be
"0"if the interaction is triggered from a D...
"global_name" is not documented as required iirc
Are you still seeing this issue?
Summary
Polls!
Hey folks, Discord plans to add first-party support for polls. The feature has started it's old good experimentation phase today, so now's about the time to document it as well. We expect that bots will be able to create these first-party polls when they become available. As usual this is subject to change yadda yadda no guarentees yadda yadda, but I personally I don't expect any changes.
However... some things are still being implemented right now for bots:
- We...
I think you accidentally added this here?
Probably should mention answers limit (10)
| [Message Poll Vote Remove](#DOCS_TOPICS_GATEWAY_EVENTS/message-poll-vote-remove) | User removed a vote on a poll |
Can guilds with BOT_DEVELOPER_EARLY_ACCESS get access right now to test implementations?
For creating a poll, see [Create Message](#DOCS_RESOURCES_CHANNEL/create-message). After creation, the poll message cannot be edited.
| users | array of [user](#DOCS_RESOURCES_USER/user-object) | Users who voted for this answer |
Can guilds with
BOT_DEVELOPER_EARLY_ACCESSget access to test implementations?
Should be done now.
it seems like this version of the documentation is missing the duration field when creating polls.
It seems like this isn't really validated yet:
- what happens when setting a timestamp in the past?
- is there a maximum duration until a poll's expiry?
Can this be optional (while there's only one layout type) maybe?
Seems like this has a limit of 300 characters.
I think this information would be better off (additionally) being put in an info/warn box next to the relevant objects.
I think they changed the expiry field to a duration field, which is just an integer that indicates how many hours the poll will stay up.
Create a seperate permission node so the communities we are in won't just spam a gazillion polls?
Spelling is also hard
I will correct this, thanks lol
I think this is probably a fine change to make, so I'll make it optional in the API later
@jkcailteux yes, my messages sometimes take 10 seconds to send
Both the expiry field and the old duration field suffer from the same problem of using time based math instead of calendar math. When datetime calculates extend >1 day you want to use calendar based math so it meets human expectations when e.g. DST transitions happen. Right now since this is a flat hour calculation you end up with the poll expiring +/- 1 hour from what you originally intended during these transitions.
Note that events suffer from the same issue as well but I'd rather t...
This tally concludes once `is_finalized` is `true`.
I also tried converting everything to webhooks and it has the same issue

Although accessibility may not be a top priority for developer documentation, a more helpful alt text would be nice.
Thanks for this!
I use this new feature to auto apply roles to newly joined members based on the invite used. The API has some significant delay until it updates the memberlist with the new member. From my experience it takes up to 2minutes. You have to take that into account in your code.
- ## Expire Poll % POST /channels/{channel.id#DOCS_RESOURCES_CHANNEL/channel-object}/poll/{message.id#DOCS_RESOURCES_CHANNEL/message-object}/expire
+ ## Expire Poll % POST /channels/{channel.id#DOCS_RESOURCES_CHANNEL/channel-object}/polls/{message.id#DOCS_RESOURCES_CHANNEL/message-object}/expire
The documentation for this has changed, but the API deploy to set the default has not yet completed. I will resolve this comment after this has been deployed. For now layout_type is still required.
A fix for this should be out now
We talked about this internally, for polls, and decided that this is a wontfix.
We understand the problem, but we believe that the impact is low enough that it's not worth either leaking the author's timezone, or building UI to pick some timezone for this.
We acknowledge that in our UI it says "3 days", but semantically it means 72 hours.
Is it intended that results.answer_counts is always empty when retrieved from the Get Channel Message endpoint for ongoing polls?
The Get Channel Messages endpoint returns the correct answer count data
| answers | List of [Poll Answer Objects](#DOCS_RESOURCES_POLL/poll-answer-object-poll-answer-object-structure) | Each of the answers available in the poll, up to 10 |
| Field | Type | Description |
|-------------|-----------------------------------------------------------------------------------------|------------------------|
| answer_id\* | integer | The ID of the answer |
| poll_media | [Poll Media Object](#DOCS_RESOURCES_POLL/poll-media-object-poll-media-...
Maybe this limitation(?) could be mentioned somewhere (e.g. in the poll section)...
Is it intended that
results.answer_countsis always empty when retrieved from theGet Channel Messageendpoint for ongoing polls? TheGet Channel Messagesendpoint returns the correct answer count data
No. Thanks for catching this.
I'll keep this comment open, but we're also revisiting the announcement channel restriction soon-ish (I assume you basically mean that)
This seems to be nullable for messages received over a gateway connection, I've yet to see it null over rest
If you decide to fetch /oauth2/@me with an access_token instead of /users/@me, you will NOT get the email field, the locale field, the mfa_enabled, verified and maybe other fields as well.
This pull request aims to clarify that the user object is partial. Since that is only said for the application object right now.
Also, for other app developers reading, I see you can get the scope field from /oauth2/token, so I just changed back to using /users/@me when I noticed all...
I am trying to build myself a small auto updater tool for the Discord Client on my Fedora machine.
I have a less_packages == better rule, so I use the tar.gz version and it is very annoying to constantly get the "Must be your lucky day.." popup every time I want to run the Client.
I am able to automate the download, extract and replace old directory part of the process but fetching the latest build version to compare against the ~/resources/build_info.json version and determine the ne...
This isn't the right repo for questions like this. However I know that someone made an auto-updating AUR repo, so I would suggest checking their code out: https://github.com/mrkirby153/archlinux-discord/blob/main/archlinux_discord/discord.py
Thank you. This is very useful.
I found what I need here but I still think there should be some documentation of which API's are available for use.
Every API section in the Docs points to API Reference, but I can't find a list of endpoints.
How did this developer even know that `discord.com/api/updat...
I wanted to chime in and say I'm having the same issue with images not appearing in embeds, albeit with discord.js, and I'm serving them from my AWS S3 bucket. Historically they don't appear on occasion and attempting the same request a second time works, but it's been pretty reliably failing no matter the number of retry attempts in the past 24 hours. Pasting the image URL by itself causes the image to appear just fine
Description
When executing a webhook with a new avatar_url the message doesn't send a all if you don't have wait=true and if you do have it, it sends but doesn't have an avatar.
It also seems inconsistent and works fine 1/10 tries. This just started happening today (23rd) sometime around 9am ET.
Steps to Reproduce
Using my GitHub avatar here as a demo but it is not limited to GitHub avatars it's any image png, jpg, etc we try.
curl -X "POST" "$DISCORD_WEBHOOK?wait=...
Endpoints are listed in their respective category on the left sidebar, but the documentation is for bot endpoints, not user endpoints which aren't really meant to be used outside of the actual discord app
I am hoping there is an existing way to do this -- I want to be able to use discord oauth2 for 'login' only, not 'signup'. That is, if the user is not already authorized, return a failure instead of showing the consent screen. I can, of course, immediately call the revocation endpoint and revoke the new authorization, but I'm hoping Discord has a way to do this more cleanly.
Just following up to say all the messages that didn't send from not having wait=true ended up being processed 4 hours later at 3:34AM ET (name is still epoch of when request was sent so you an see the delay), avatar_url appears to be working again.

There's no such functionality, and at first thought I'm not entirely sure it would be advisable. Someone could always make an OAuth2 URL for your app with more permissive parameters.
Description
context and authorizing_integration_owners are missing on incoming slash command interactions if the user has not authorized the application.
Note that this may not be isolated to slash commands, I have not tested other interactions
Steps to Reproduce
- Create a slash command
- Add the bot to a guild (but not your individual user account)
- Run the command, keys are missing
- Authorize the bot to your user account
- Run the command again, keys are present
##...
They could do that now, couldn't they? And wouldn't do them any good since they wouldn't have the secret to actually use the response code. There are other oauth2 implementations that indeed treat prompt=none strictly -- that is, they return an error instead of asking for consent, if the user hasn't already given it. I would just like to avoid the steps of fetching a token, fetching account information, and then immediately revoking the token (if the account isn't already signed up with us).
This isn't the right repo for questions like this. However I know that someone made an auto-updating AUR repo, so I would suggest checking their code out: https://github.com/mrkirby153/archlinux-discord/blob/main/archlinux_discord/discord.py
Description
I've observed recently that all webooks, even ones to different channels, return the same X-RateLimit-Bucket header. As a result this the limits the requests across an entire community to 5/1s. Though I don't have logs that can confirm, I believe webhooks used to return a unique X-RateLimit-Bucket for every channel, not a single one for an entire community. The documentation here, if I'm reading it right seems to confirm [X-RateLimit-Bucket](https://discord.com/developers/do...
Why isnt this a feature already
I'd say it should also restrict the app from adding the user to another guild until they approve that they wanted to get added.
The fact that this isn't already implemented into the client is very much embarrassing considering it is standard practice in the industry to make sure OAuth2 applications don't ever interfere with the user experience.
true, maybe make it like a link thing, and it should be more at the bottom and red, something like that
We haven't been able to repro and see other instances of this happening. We've added some internal tracking to monitor this but I'm going to close this out
We haven't been able to repro and see other instances of this happening. We've added some internal tracking to monitor this but I'm going to close this out
I can give you some ids if that helps:
messages:
1221878966722232351 took 5220ms to send
1221874976974442529 took 4820 ms
1221873797855055902 took 6338ms
1221872039795884122 4728 ms
1221871162062016562 5154 ms
1221866988851429479 7998 ms
1221866449778507806 6806 ms
1221866378919809084 7423 ms
all examples of the past 2 h...
so basically, hear me out, people that are like admins in servers, can use nitro features in the server they own or are admins, like they can use animated emojis, and change their pfp for that server specificaly only, stuff like that, it would be cool right?
7a6bc9d fix: embedded app sdk code example commands.com... - Lulalaby
f4256d0 Fix OAuth2 Scope guilds.members.read (#6741) - ppauel
So right now a server without boosts has 8 slots, raise this to: 10
Server Boosting Level 1, change it from +16 to +20. So total 30 for Boosting Level 1
For Boosting Level 2, change it from +12 to +15. So total of 45 for Boosting Level 2
For Boosting Level 3, change it from +12 to +25. So total of 70 for Boosting Level 3
This way people will boost servers more and they don't have to make multiple servers to have all their favorite sounds.
I think the issue is upstream of us, because looking at the problematic server, I can see the following response latencies from your bot user and the message send endpoint since the beginning of the month:
- Average Response Time: 105 milliseconds
- 90th Percentile Response Time: 152 milliseconds
- 95th Percentile Response Time: 183 milliseconds
- 99th Percentile Response Time: 343 milliseconds
- Maximum Response Time: 3,026 milliseconds
I think the issue is upstream of us, because looking at the problematic server (1076155409481601044), I can see the following response latencies from your bot user and the message send endpoint since the beginning of the month:
- Average Response Time: 105 milliseconds
- 90th Percentile Response Time: 152 milliseconds
- 95th Percentile Response Time: 183 milliseconds
- 99th Percentile Response Time: 343 milliseconds
- Maximum Response Time: 3,026 milli...
1e70cd0 Fix `GetActivityInstanceConnectedParticipantsRe... - ppauel
Just as how you can register commands to Guilds, I'd love to see the availability to have the same system for user-specific commands now. This would be very useful for custom commands and finally developer-locked commands.
Here's a screenshot of the existing guild specific command endpoint, which should be specified to user specific commands too.
This repo's Discussions tab is more intended for API/Bot related suggestions. General client suggestions like this one should be posted on Discord's Feedback Site instead. :)
Right now we're purposefully not documenting name and shouldn't be considered stable. if/when that changes, will follow-up.
Similar to the Member.mute() method, this function will enable or disable the camera of the user for all users in the voice channel. If the user hasn't enabled the camera, then do nothing.
You can disable the video perm for the channel instead
You can disable the video perm for the channel instead
I can't find any info in docs, can you share link or some example, please?
Seems like this command doesn't actually need the guilds.members.read scope, and the values in the usage doesn't use strings.
In the client, it's called the "Video" Permission - on the API Docs, it's listed as the STREAM Permission.
You can edit Permissions either on a Channel-level (for Channel-specific Overrides) or on the Server-level with these endpoints:
- Edit Channel Permissions - `PUT /channels/{channel.id}/permissions/{overwrit...
@Snazzah thanks for this! I'll take a peek. These are currently manually written but will be auto-generated soonโข๏ธ, so we'll have things like types/etc included in tables.
I understand what you're talking about, but the problem is that if the user already has the camera turned on, it won't be disabled. I want to automatically enable the user's camera under certain conditions. Is there any way to do this?
Since the beginning of the year, I've been experiencing a problem with the Oauth2 Discord API. Randomly, Oauth2 tokens return "401 Unauthorized" when I try to retrieve the associated user (after refreshing the token) or the token information with the introspection route. This causes a loop and a denial of service on my API every time a buggy user logs in with his Discord account on my platform. The loop problem has been fixed but I still got Cloudflare Ban 24 hours because of it. There's a hu...
I was able to upload a file using multipart/form-data and attachments in an interaction response. This appears to be resolved.
I was able to upload a file using multipart/form-data and attachments in an interaction response. This appears to be resolved.
When receiving an interaction via a gateway event, you respond to it using an HTTP request to Create Interaction Response, which allows you to upload files.
However, when responding to interactions received via an HTTP request by Discord, it is apparently not possible, currently, to upload files in response. In contrast to Create Interaction Response, you cannot respond with `multip...
Description
It seems like since the backend support for user commands had been added, context menus doesn't work if the user got no send messages permission.
I think these commands should at least work, when the response is ephemeral.
In our case we got a feedback system, where users fill modals with there feedback and webhooks post it, so the users itself got no write perms. However they should be able to report feedback trough context menus, which doesn't work now.
Steps to...
Hey! Just a few questions to better understand this:
- Is the application you're using installed to the server or to your users? (docs)
- Was this working in your server before and broke, or is this more of a feature request?
I see the frontend has a couple bugs reported here where it's letting you try to run commands that will fail due to permission checks, and changing channels is losing the reason for it...
context menu commands are supposed to not work without Send Messages, except user-installed commands, which are forced ephemeral. They worked for guild-installed commands for a short while (few weeks?) but this was considered a security issue, as it could create public messages in read-only channels, and was blocked in the backend last week as a bug fix.
Is the application you're using installed to the server or to your users?
This is a good old classic server app.
Was this working in your server before and broke, or is this more of a feature request?
I think I never tested it myself, however another dev that contributed to the bot told me it was working fine.
Description
It works well in the dark theme of Discord, but it doesnโt work as expected in light theme.
Steps to Reproduce
- Change theme to light theme.
- Go to an appโs profile. (They must have an add button).
Expected Behavior
Icon colour should have been white.
Current Behavior
Icon colour is black.
Screenshots/Videos
, but does conflict with the "always" language that you quoted.
This will never happen with IDs that come from Discord.
It's possible that discordgo is requesting this data, but as I understand it the data is coming from discord in response to a READY request.
This is not an issue related to the Discord API. Please report client bugs at https://dis.gd/bugreport
10cc270 Update starter activity code to remove xss - infinitestory
Docs update to match the embedded app sdk update.
There are also some trailing spaces removed by my autoformatter
This is not an issue related to the Discord API. Please report client bugs at https://dis.gd/bugreport
Advaith redirected me to here. Okay, thanks.
@appellation my understanding is that bot related bugs should be reported here? that is what apps team devs have said in the past
723fabf Document integration_type oauth parameter (#6... - kpodp0ra
6601e91 App command integration_types/contexts nullability - yonilerner
The last row looks wrong
Tables my beloved
really? i preserved the spacing from before
2d265c5 fix: wrong table row (#6766) - Lulalaby
Hello !
Can u add something to edit banner (crop/recenter etc) on developper portal
Its hard to find the good resolution example follow pictures up ^^
I was going through the discord documentation, when I came across the endpoint "/users/{user.id}" , here email is also mentioned as a parameter, is it like discord leaks user-email to admins/bot-users ?
@hawl1 Please, inform about the email param?
It does not leak the email address of Users as you need to request the User to grant your Bot/App/Activity/etc the email OAuth Scope.
I assume this is only possible via the GET /users/@me endpoint, not via the [`GET /users/{u...
Description
Since the beginning of the year, I've been experiencing a problem with the Oauth2 Discord API. Randomly, Oauth2 tokens return "401 Unauthorized" when I try to retrieve the associated user (after refreshing the token) or the token information with the introspection route. This causes a loop and a denial of service on my API every time a buggy user logs in with his Discord account on my platform. The loop problem has been fixed but I still got Cloudflare Ban 24 hours because of...
Gesendet von Outlook fรผr Androidhttps://aka.ms/AAb9ysg
Von: Alphabet @.>
Gesendet: Freitag, Mรคrz 29, 2024 1:17:33 PM
An: discord/discord-api-docs @.>
Cc: Subscribed @.>
Betreff: [discord/discord-api-docs] Random 401 Unauthorized on OAuth2 for some users on @. & ***@***.***. (Issue #6769)
Description
Since the beginning of the year, I've been experiencing a problem with the Oauth2 Discord API. Random...
I was going through the discord documentation, when I came across the endpoint "/users/{user.id}" , here email is also mentioned as a parameter, is it like discord leaks user-email to admins/bot-users ?
@hawl1 Please, inform about the email param?
e-mail reply was just an example, and I did NOT mean that activities.read should also get email address, sorry for any confusion that happened, I just wanted a activities property.
I was going through the discord documentation, when I came across the endpoint "/users/{user.id}" , here email is also mentioned as a parameter, is it like discord leaks user-email to admins/bot-users ?
@hawl1 Please, inform about the email param?
It would make sense for bots to be able to access user status and user activities because bots can already access stuff like servers, text channels, and so on.
For instance, when making a request to the /users/{user.id} endpoint, instead of receiving only basic user information like:
{
"id": "80351110224678912",
"username": "Nelly",
"discriminator": "1337",
"avatar": "8342729096ea3675442027381ff50dfe",
"verified": true,
"email": "nelly@discord.com",
"flag...
It's hard to debug per the description... We fixed a bug where apps could create several tokens earlier this year, I guess you still experiencing the issue now?
"1" is not valid application_id tho, curious how you got it ><
Currently followUps executed in direct messages as a user application are ephemeral by default and cant be changed to non ephemeral.
It would be really cool if followUps could be made non ephemeral as that would allow for them to be useful in more ways and there is no reason for them not to have this option.
It works just fine in servers with under 25 members so I dont see an actual reason you guys made them force epehemeral in direct messages.
This is a documented limitation of the preview phase, it will be resolved by the full release.
https://discord.com/developers/docs/change-log#march-18-2024-limitations-and-known-issues
If you look in the DDev docs they allow you to create an auto mod rule
It's hard to debug per the description... We fixed a bug where apps could create several tokens earlier this year, I guess you still experiencing the issue now?
Yes, I'm currently encountering this issue. I understand debugging can be challenging, and I apologize for any inconvenience. Due to the considerable time it takes for the error to occur, I'm uncertain about its specific trigger.
If it helps, I can reach out to you on the Discord Developer server and provide you with a user ID and...
Description
The API rejects PATCH /channels/:id requests if the description contains emoji message formats / of emojis hosted in guilds the changing entity (moderator/bot) is not in.
I see how it makes sense to restrict the emojis one can set initially, but the current behavior prevents any changes from being applied to the channel by staff/bots that do not share the guild the emoji is hosted in.
Error code 50035 CHANNEL_TOPIC_INVALID "Channel topic contains at least ...
Oh well thats really unfortunate, hopefully they add support for it back soon!
This is a documented limitation of the preview phase, it will be resolved by the full release.
https://discord.com/developers/docs/change-log#march-18-2024-limitations-and-known-issues
This was introduced as part of a larger security issue they fixed. I was told they were going to revert this specifically but they never did.
Right now, there is an official warn function that the automod in a server can utilize, but it seems crazy to me that there's not a manual way to trigger this warning, unless I'm crazy. I don't want to use a bot because I'm an admin and not the server owner, so permissions can get weird with those, and I would love to have the official discord theme on the messages
07299f6 Document bulk ban endpoint (#6720) - MinnDevelopment
There is another issue where users without Nitro cannot use emojis in the channel topic, even if they are from the current server, which should not happen, since you will have access to an emoji that is in the current server.
I'm using a 3rd party autocomplete API which has a minimum character limit of 3 characters (to complete player usernames of the 3rd party site).
Currently a user typing less than 3 characters observes a misleading error message (as opposed to "more input required"):
@lsdimagine I wish I could give you more information on that. I'm developing a bot for a discord server that I don't own and this activity exists there
| [close](#DOCS_DEVELOPER_TOOLS_EMBEDDED_APP_SDK/close) | Close an Embedded App |
discordSdk.close(RPCCloseCodes.CLOSE_NORMAL, "You exited from app");
Is close async? Not sure right now
Used to close your app with a specified code and reason.
Is close
async? Not sure right now. Otherwiseawait discordSdk.close(RPCCloseCodes.CLOSE_NORMAL, "You exited from app");
| Name | Code |
|-------------------|------|
| CLOSE_NORMAL | 1000 |
| CLOSE_UNSUPPORTED | 1003 |
| CLOSE_ABNORMAL | 1006 |
| INVALID_CLIENTID | 4000 |
| INVALID_ORIGIN | 4001 |
| RATELIMITED | 4002 |
| TOKEN_REVOKED | 4003 |
| INVALID_VERSION | 4004 |
| INVALID_ENCODING | 4005 |
Table formatting..
I am also interested in this problem being fixed. Commenting to add myself to the thread so I receive future notifications.
I've worked around this problem by having the user activity be refreshed regularly, but it's far from ideal.
Description
If I try to sync commands (PUT /applications/{app_id}/commands), user install commands don't work. I tried all contexts with included USER_INSTALL integration type. Says "invalid interaction application command". Discord restart fixing it, but it's unconvinient
My command payload
{
"name": "permissions",
"description": "Check permissions",
"type": 1,
"integration_types": [1],
"contexts": [0, 1, 2]
}
(Sorry for my english)
Ste...
There is not a 100% ideal solution, but a common one is to return a single entry saying something like
Error: You need to type at least 3 characters.
As many of you have mentioned this is is a feature request to force guild apps responses to be ephemeral. I've updated the issue to reflect that. This is something we've actually decided against doing because it would be considered a breaking change.
We could potentially look at other ways of doing this in the future so I'm going to leave this open as a feature request.
Did you refresh your discord app after registering the commands?
Also can you clarify what you mean by "Try overwrite this command"?
Why make it seperate and not update the modal with additonal features that could represent a poll?
I get
"integration_types_config":{"0":{},"1":{}}
Did you refresh your discord app after registering the commands?
Also can you clarify what you mean by "Try overwrite this command"?
I mean PUT /applications/{app_id}/commands.
What do you mean "refresh"? Restarting my discord client?
The PUT /applications/{app_id}/commands API requires a list of commands, so if the request body was just that one command it would not be valid
What do you mean "refresh"? Restarting my discord client?
yes
Description
On older Messages (circa Feb-2024), the interaction_metadata object is not present while the deprecated interaction object is the only source of the equivalent information.
Steps to Reproduce
- Use a Message Component on a message created before February 2024.
- Use a Message Component on a message created after March 2024.
- Notice the former does not have an
interaction_metadataobject in itsmessageObject.
Expected Behavior
I expected that the old...
Trace #8 started 1m ago
0.002 ๐ AppState changing from active to background
๐ โช JS Imports 3197ms
0.007 ๐พ Start db.fs_info
0.037 29 ๐ฆฅ _subscriptions
0.101 46 ๐ฆฅ MobileAppDatabaseManager
0.128 ๐พ Start Dispatch WRITE_CACHES
0.187 ๐พ Start trimOrphanedChannels
0.190 183 ๐พ Finish db.fs_info
0.235 107 ๐พ Finish Dispatch WRITE_CACHES
0.255 68 ๐พ Finish trimOrphanedChannels
3.649 ๐ AppState changing from background to active
3.653 ๐พ Start kv.get...
The
PUT /applications/{app_id}/commandsAPI requires a list of commands, so if the request body was just that one command it would not be validWhat do you mean "refresh"? Restarting my discord client?
yes
Yes. I Tried to restart discord and it works, BUT if I restart my bot, error returns
Description
When using the /members-search endpoint for a member that joined the guild <20 seconds ago, their information doesn't show up, as if they aren't currently in the guild.
Steps to Reproduce
I'm not exactly sure how to do curl requests, since I'm using the API with the help of a third-party app (BotGhost).
- Have a member join the guil...
members, like anything, take a bit to be indexed.
- mark
oauth2_install_paramsas optional - update wording for a sentence that dropped off
- add "in preview" to fields
8396be3 App command integration_types/contexts nullabil... - yonilerner
my email notifications are dying i beg you ๐ญ
Gesendet von Outlook fรผr Androidhttps://aka.ms/AAb9ysg
Von: shay @.>
Gesendet: Dienstag, April 2, 2024 8:38:22 PM
An: discord/discord-api-docs @.>
Cc: Subscribed @.***>
Betreff: Re: [discord/discord-api-docs] fix: merge conflicts (PR #6783)
Merged #6783https://github.com/discord/discord-api-docs/pull/6783 into main.
โ
Reply to this email directly, view it on GitHub<https://github.com/discord/discord-api-docs/pul...
@shaydewael why not just document as "this field is unstable"?
Check #3301, I have proposed a broad-scope pre- and post- moderation API
@danny-may to allow coordination and client interoperability with third-party server implementations
How long does it take at the maximum?
Hey @ishields! Can you provide us with some more info, e.g. the exact requests and responses including the headers (but with the secrets redacted)?
If you are updating commands on every restart of the bot, then you would need to refresh your discord app every time your bot restarts :)
I would highly recommend not updating commands every time your bot restarts
Its very unlikely we will backfill this on older messages
๐ For apps with Monetization enabled, we have released the ability to export your SKU analytics to CSV. These exports allow you to use your preferred data tools to report on your premium offerings.
- [x] added to change log
cf50243 Added CSV Export for Premium App Analytics (#6784) - colinloretz
Description
When retrieving message attachments via the Discord API, an issue arises with the determination of the MIME type for certain filename extensions. Specifically, when an attachment is named "somename.mp3.gz" and its content is a gzip-compressed file, the API incorrectly returns the MIME type as audio/mpeg instead of the expected application/x-gzip. This discrepancy between the expected and actual MIME types could lead to misinterpretation of file content by applications o...
I got the same issue. Our server couldn't get user information by token. But when debugging, we use the token on local, It's successful
but why does it need to be private? i just used it for a user info slash command is it causing any harm? that way i found out that clyde had nitro and any other bot user not or other interesting stuff
The GET /users/{user.id} route no longer returns premium_type
Hey @AWATV! Can you provide us with the exact requests you're sending and responses you're getting? Thanks!
can you at least explain why it needs to be private? there are allot of dislikes arround
Given user apps are now in beta, it's quite essential for us bot developers to have the ability of editing messages without creating many notifications to the DM user. For this reason, I'd like to request allowing message app commands to work with bot responses.
That way the users aren't forced to delete or keep sending in dms, instead of just simply being able to have an edit in place. Currently interactions allow to edit in the first 15 minutes, but it's essential to allow this interacti...
const { Client, GatewayIntentBits } = require('discord.js');
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.DirectMessages,
],
});
const token = '...';
const guildId = '1195451831149658225';
const channelId = '1196091248201695262';
client.once('ready', async () => {
console.log('Bot is read...
This is private information about the user that should not be exposed publicly. As such, accessing it requires the IDENTITY oauth scope.
oh actually can you just replace newlines with \n characters so we can parse the input correctly? that would be the best solution for everyone in my eyes and you guys don't have to change the internal editor
+1 from my current project. Trying to give the user the option to quick launch a related app by just clicking a button. Sad to see this is the only thing stopping me.
java -Dprefix="!" -jar JMusicBot.jar
How to just remove the VANITY_URL feature?
Description
spamming u right now
Steps to Reproduce
hellow to spammer
Expected Behavior
hmmm this kinda weaird
Current Behavior
yea fr
Screenshots/Videos
No response
Client and System Information
OH SHESHHH
It's hard to debug per the description... We fixed a bug where apps could create several tokens earlier this year, I guess you still experiencing the issue now?
We've just been banned for another 24 hours during the session refresh. Our web platform has a high connection traffic (we can easily reach 10,000 failed connections in 10 minutes), which penalizes us heavily and prevents our users from connecting. We have had to temporarily disable the OAuth2 connection to Discord and invite dis...
Description
The endpoint GET /webhooks/{webhook.id}/{webhook.token} is returning the user object, despite the API documentation explicitly stating that it should not be returned when retrieving a webhook using its token.
Steps to Reproduce
- Send a request to
GET /webhooks/{webhook.id}/{webhook.token}with valid webhook ID and token. - Inspect the response received from the API.
Ex...
Since it wasn't mentioned, I can reproduce this without sending an Authorization header.
It does not only happen when both auth methods are present.
The API has many paginated endpoints, usually with a subset of these parameters:
beforeafterlimit
However, the behavior of these endpoints is inconsistent to the point of having to debug each one. This becomes increasingly problematic when endpoints are locked behind monetization or other walls, like with entitlements.
Some of the observed "flavors" of pagination used in the API:
- [...
Btw I had opened a PR quite a while ago to update the docs on this, on the thought that this was simply yet to be documented
- #6303
Wouldn't it better to just make this endpoint idempotent or re-use code 520001?
Is this caused by missing the USE_EXTERNAL_EMOJIS permission?
There is a similar info block for Execute Webhook that hasn't been updated
My server has a custom context menu command to report messages to staff members of the server, just today members were confused why they couldn't report messages in our #welcome channel.
I would appreciate some sort of change that would allow ephemeral responses to be possible, as it's confusing that the app command is available to be used there, but doesn't work and just errors out.
Hello,
You seems tu be using what can be called "cutting edge" technologies as mentioned in your profile.
Did you know that the most part of theses (rust, typescript, etc) are more recent than ipv6 itself ?
For the voice part, I not against the fact that this demand some twearks, but for the "public" api, that use some websockets or http, by already using a cloudflare proxy, what block you to enable the ipv6 radio button, to allow a more infrastructure from the developers usings theses...
Any luck with the issue ?
FIXED check my reply
Already using MessageContent intents, without it commands doesn't work at all.
Decided to test this myself. Was curious if it was some weird thing with like it just pulling the first file extension. Here's my bot code:
const Eris = require("eris");
const dotenv = require("dotenv");
dotenv.config();
const bot = new Eris(process.env.TOKEN);
bot.on("ready", () => {
console.log("Ready!");
});
bot.on("messageCreate", (msg) => {
console.log(`${msg.id} > `, {
filename: msg.attachments[0].filename,
content_type: msg.attachments[0].content_type,
...
make the general text args support multiple lines
Technically this is already supported. At least when using the Android discord app it's possible to enter newlines in the text field of any argument, and bots can receive them as text with newlines in the payload.
I just have no idea how to enter a newline on web/native client. None of: Shift+Enter, Ctrl+Enter, Alt+Enter work. Also tried copying a newline to the clipboard and pasting, it just comes out as a space
As this is rolling out, I would like to reiterate the need for it's own permission to post polls (and potentially vote in polls, but at least posting). I know this was previously shared in https://github.com/discord/discord-api-docs/pull/6746#issuecomment-2013967394 but with the announcements and the FAQ saying it's "rolling out to all users over the next couple of days" I have real concerns as an admin mainly.
It s...
Description
bots are allowed to use lootboxes endpoints, they can open lootboxes, get their stats and redeem prize
Steps to Reproduce
get statistics of opened lootboxes and redeemed_prize
curl -X GET 'https://discord.com/api/v9/users/@me/lootboxes'\
-H 'Authorization: Bot '\
-H 'X-Super-Properties: '
open a lootbox
curl -X POST 'https://discord.com/api/v9/users/@me/lootboxes/open'\
-H 'Authorization: Bot '\
-H 'X-Super-Properties: '
redeem pr...
Im getting the same with JDA as well...
Description
Emoji is not being rendered as expected. It should display the emoji, but it does not when the command is from User App.
Steps to Reproduce
- Message
- Apps
Expected Behavior
Emoji displayed as normal.
Current Behavior
Emoji is not rendered, it just shows :emoji_name:.
Screenshots/Videos
User -> Apps
Message -> Apps
 and actions to perform, which are the same as normal auto mod (block message, timeout user, report message to channel).
At least that's what I gathered. Not sure if Discord has changed some stuff, but I doubt it...
This was indeed a bug and has been fixed.
This was a bug, those endpoints should not return a user. The bug has been fixed.
Please accept this PR so that bots can begin working with this API ASAP. There really is no reason this should have gone live without documentation.
finally there is another one who found this bug ๐
In the haste to implement "Polls" for all users, server administrators find themselves without the option to disable this feature for members. We need the same level of control over Polls as we have for Threads.
Currently, bot developers can bypass these restrictions and create custom scripts to automatically delete polls if they are not created by a user with specific permissions.
However, this solution does not address the needs of the broader Discord user base, that isn't a normal b...
Please accept this PR so that bots can begin working with this API ASAP. There really is no reason this should have gone live without documentation.
If the API is not ready to handle polls officially, it's better to wait. For the time being you can still interact with the poll object on the incoming packets.
There may be a couple more spots where it comes through but not officially documented.
There's still reviews and feedback for the API docs that needs done (as you can see from...
Guys, we are experiencing the same problem, is there anything we can do to alleviate it? Thanks a lot!
Found a fun little bug with the current polls api rollout that allows you to create a forum post that nobody can send messages in. Simply send this payload to a webhook attached to a forum channel:
{
"thread_name": "Woodchucks",
"poll": {
"question": {
"text": "how much wood would a woodchuck chuck if a woodchuck would chuck wood?"
},
"answers": [
{
"poll_media": {
"text": "all the wood"
}
},
],
"durati...
Nope wait for discord. Itโs an issue all across the API. Itโs pervasive in
JS and in any other wrapper that you decide to use like dart or Java. The
issue is with Discord not with anything that weโre doing wrong. But this is
a pretty low level BUG. That being said, I donโt expect it to be fixed
anytime soon because of how insignificant it is
On Thu, Apr 11, 2024 at 23:49 Zhongsheng Ji @.***>
wrote:
Guys, we are experiencing the same problem, is there anything we can do to...
Hello, and are they any reasonable reason as you can't activate ipv6 on cloudflare proxy, which change nothing on your infrastructure side ?
This could help reduce some technical garbage on side of most people asking for this ...
Yes we have systems internally that depend on ipv4 addresses. These systems need to be upgraded to handle ipv6 before we can switch the toggle. If it was simply a 5 minute flip a flag in Cloudflare we would have already done it.
Unfortunately it is not, and the assumption that IPs are v4 goes pretty deep in the system and its persistent data stores.
@jhgg I've heard there are plans to support IPv6, but they have no definite date, is this still the case?
Yes we have systems internally that depend on ipv4 addresses. These systems need to be upgraded to handle ipv6 before we can switch the toggle.
Why did you not start with IPv6 support from the start?
When you're an early stage startup you make technical tradeoffs. Put candidly, we were much more focused on building an app that people want to use.
Yes, this can apply when you'r a startup.
But when did this start ? Early 2015
Discord was publicly released in May 2015 under the domain name discordapp.com
Almost 10 years ago ! And this is only the public release ...
i think this is by design to prevent victim chasing
Define an "active" property boolean value specifically made for this functionality alongside the existing archive functionality. This allows developers to programmatically mark a thread as "inactive", which automatically marks the thread as "archived" as well, but with added benefit that threads can also be marked as "active + archived" or "active + unarchived".
active could be defined as archived NOR locked
The description here seems to completely mismatch every other description in this table. Same with every other table modified.
Our intention is that it should be always non-null (with just... default values for polls without votes yet). Are you still seeing it null through the Gateway? I'm going to check later just wondering if anyone knows right now. :P
I'm pretty confident polls are allowed in announcement channels now.
I can still reproduce it
Yes lol. I will make the change (and modify docs when it's done).
The flag follows the tally. Honestly I find this sentence clear that it is the latter. ๐ค
I found the description kind of redundant since the link to the poll object covers everything that is necessary, so I chose to add a little flair.
Sorry folks this PR has been delayed, mostly because I went on PTO for 3 weeks. =P I also admit that the feature timing is weird, but I'm just gonna leave it at that and focus on work.
Also I acknowledge the debate around permissions. Part of the delay in getting this stuff out has been in part due to internal discussion about permissions. The discussion is long and nuanced for various reasons that I'm not gonna get into here, and the discussion needs to be over since adding a permission i...
whats the names of these new gateway intent bits? POLL_VOTE_ADD and POLL_VOTE_REMOVE? (im stupid)
whats the names of these new gateway intent bits?
POLL_VOTE_ADDandPOLL_VOTE_REMOVE? (im stupid)
MESSAGE_POLL_VOTE_ADD & MESSAGE_POLL_VOTE_REMOVE
MESSAGE_POLL_VOTE_ADD and remove are the gateway messages. I'll document the intents in a bit (finishing other stuff) but they will be GUILD_MESSAGE_POLLS and DIRECT_MESSAGE_POLLS.
Thanks for the update @tpcstld! Hope your PTO was good.
Also I acknowledge the debate around permissions. Part of the delay in getting this stuff out has been in part due to internal discussion about permissions. The discussion is long and nuanced for various reasons that I'm not gonna get into here, and the discussion needs to be over since adding a permission is a one-way door for us. There is more discussing on Monday and this is basically all I want to say about permissions right now...
I think for the most part I'm good. I'm sure there are some API-only bugs still hidden though. :P
If people want to specifically test out components/embeds/content alongside a poll with bots that might be nice, and editing messages since honestly I shipped the API changes but I didn't test too much compared to the possible complexity XD
Otherwise stuff like https://github.com/discord/discord-api-docs/pull/6746#discussion_r1536461865 and https://github.com/discord/discord-api-docs/pull/6...
Seeing that we're getting closer to completion, can the general poll restriction for bots be lifted? Or is that being saved until the complete release, kinda hard to test library implementations with it in the way
Seeing that this is getting closer to completion, can the general poll restriction for bots be lifted? Or is that being saved until the complete release, kinda hard to test library implementations with it in the way
FML. Should be available for bots now.
Changes still may occur though so wouldn't that mean it is not ready quite yet?
While we're here again, the "End Poll Now" option shows up for other users, but is unusable
This should mention that you can't expire polls from other users
GUILD_MESSAGE_POLLS (1 << 24)
- MESSAGE_POLL_VOTE_ADD
- MESSAGE_POLL_VOTE_REMOVE
DIRECT_MESSAGE_POLLS (1 << 25)
- MESSAGE_POLL_VOTE_ADD
- MESSAGE_POLL_VOTE_REMOVE
Are there still cases where this error code is returned?
Will Poll question and the selectable options be accessable for every bot or is it limited to the message_content priviliged intent?
And Poll votes behind the member priviliged intent? Any plans regarding that / how is it currently planned?
Description
The documentation mentions an avatar_decoration field, but when I retrieve the user data (GET https://discord.com/api/users/@me), the API returns an avatar_decoration_data field:
{"id":"userId","username":"example_user","avatar":"avatar_hash","discriminator":"0","public_flags":4194368,"flags":4194368,"banner":null,"accent_color":null,
"global_name":"User","avatar_decoration_data":{"asset":"hash","sku_id":"id"},"banner_color":null,"clan":null,"mfa_enabled":true...
It seems like being able to is intended since the option shows
https://github.com/discord/discord-api-docs/pull/6746#issuecomment-2053493106
Will Poll question and the selectable options be accessable for every bot or is it limited to the message_content priviliged intent? And Poll votes behind the member priviliged intent? Any plans regarding that / how is it currently planned?
poll votes will have their own intent
Then it could be at least lowercase like the others
I've been experimenting with user apps lately and realized some unexpected behavior or at least from my team's perspective when it comes to the behavior from the types. And I was wondering if this proposal can be applied in order to give some consistency or flexibility in the design of user apps.
GUILD_INSTALL is present |
GUILD is present |
Current behavior | Expected Behavior |
|---|---|---|---|
| False | False | Not in servers | Not in servers |
| False | True | In servers | ... |
A quick question, can webhook started polls be pre-expired (like, end them before the poll closes automatically)?
@harshpandey002 Please open a new issue and include the exact request (with secrets removed) and response you're using
Please don't be that kind of commenter, just answer his question. Instead of being so rude.
I just tried this as well and im sad to see animated does not work.
remember, audit log is not replay log
Description
When specifying a timestamp for dms_disabled_until further in the future than 24 hours (+ 1 minute for whatever reason), the API delivers a 400 response but reads DMs disabled until time cannot exceed 12 hours into the future.
The accurate count is (as mentioned before) 24 hours 1 minute in the future, but could probably get away with changing the message to reflect 24 hours. Not sure why that minute's there, it's probably something I'm just not familiar with yet as I'...
Is it intended that
results.answer_countsis always empty when retrieved from theGet Channel Messageendpoint for ongoing polls? TheGet Channel Messagesendpoint returns the correct answer count dataNo. Thanks for catching this. Might be a little while until we fix this though as we're heading into the weekend. :(
it ...
Description
If the user has the perm overwrite of manage permission (also known as MANAGE_ROLES) on a channel or a categorie, it could also give to himself permissions he don't have. He can also manage permission of higher roles.
Steps to Reproduce
- Create a role with no given permissions
- Create a Permission Overwrite in a categorie or a channel allowing to edit permissions (manage_roles)
- Give this role to a user
- Use this user to go in settings of channel (or categorie) a...
Description
The field recurrence_rule for recurring guild events is not documented in the Guild Scheduled Event Structure.
Steps to Reproduce
- Create a recurring event on a guild
- Get the event/all events of the guild
curl ...
Description
Since the update of the fixed width font for code blocks, certain types of code block no longer correctly render emojis.
Attached are two examples from latest stable android release and latest stable desktop release, showing code blocks in embeds which should contain the emojis :rightwards_hand_tone1: and :coin: (inserted directly as UTF-8). This was working previously and suddenly stopped working. Certain other emojis such as โ work fine however.
As you can see this beha...
this is the same thing working previously
The PurchaseType and SnowflakeSelectDefaultValueTypes component schemas are both required properties in the components that reference them. But both of these schemas have empty oneOfs, thus not allowing for the required condition to be satisfied.
Please accept this PR so that bots can begin working with this API ASAP. There really is no reason this should have gone live without documentation.
If the API is not ready to handle polls officially, it's better to wait. For the time being you can still interact with the
pollobject on the incoming packets. There may be a couple more spots where it comes through but not officially documented.There's still reviews and feedback for the API docs that needs done (as you can ...
a bit more digging reveals this works ok on windows 11 discord stable client but not windows 10, and works fine on firefox using the web client on windows 10 and 11.
Manage permissions in an override allows you to set any permissions on that channel. When you have it guild wide your guild wide permissions restrict which you can set.
I thought this was documented, couldn't find it but night did say it here: https://github.com/discord/discord-api-docs/issues/3756#issuecomment-1021523953
Thanks @Zipdox2. My work here is complete. https://github.com/elderlabs/BetterDisco/commit/d988d6a8
Uncertain if this is a desired PR, though these VC encryption modes have been available in and used by the official Discord user client for at least the last year. I'm certain of the probability of at least a few of the existing modes (new and old) being deprecated in favor of newer/more modern ones as time progresses -- given the succession of all xsalsa20 modes in favor of xchacha20 broadly across the industry, iirc based on my research ages ago.
Regardless, I offer this PR in hope...
no, it is not partial. all the fields you mentioned are optional fields, and they are usually not included in the user object. partial means that non-optional fields are missing, and that does not apply here.
This permission allows a role to create new roles beneath them, then edit them accordingly. Keep in mind that this role comes 2nd to the Administrator role, and although you can add, edit, and assign new roles to users, you still can't edit your role and roles above yours. Additionally, you can only assign permissions that you have to roles under you. If your role doesn't have banning members enabled, you can't let other users ban them either. Duh.
This was perfect in my case... So this ...
That is still the case, as long as you don't have an explicit override to allow manage permissions on a channel
expire can't be used as an active verb so this wording is weird - I'd call this End Poll (which also matches the UI text)
## End Poll % POST /channels/{channel.id#DOCS_RESOURCES_CHANNEL/channel-object}/polls/{message.id#DOCS_RESOURCES_CHANNEL/message-object}/expire
Immediately ends the poll, instead of waiting for the configured expiry time.
would be nice if expiry was nullable to support infinite polls - many servers already use reactions for infinite polls and users would like to be able to do that with native polls also. maybe this could be changed in the future but making a non-nullable field nullable would be a breaking change
It feels weird that polls are getting their own docs page - especially since messages, which polls are part of, are only part of the channel page. It would be more consistent to have polls be in the channel page. (or maybe messages could be moved out to a separate page?)
I would prefer the message documentation is moved out of the channel documentation page. The current structure is very confusing. Potentially, polls could be part of the extracted message documentation, similar to embeds.
Description
The documentation includes 2 permissions that seem to be "unavailable to developers":
The relevant changelog implies there will be an update about this in the f...
Currently the relevant endpoints require the CREATE_* permissions for users, but for bots the CREATE_* permissions do not apply and the MANAGE_* permissions are required instead.
For knowing what users can do, the CREATE_* permissions should be implemented, but for knowing what bots can do they should not be used currently.
Should be on most desktop clients by now
Audit log right now logs when automod timeouts a user, but not when staff does it. It should log when a user puts another user on timeout
@MinnDevelopment, great timing! I'm tracking this down this week, and we will have an update shortly.
As @advaith1 mentioned, the following note in the change log is still true but the plan is to make them available to devs soon.
These were rolled out in July 2023 to users and roles and have been added to our developer documentation but are not yet available to app developers.
Hey there! I'm going to remove the bug tag since this is working as intended and close the issue. @Starmania, if you would like to discuss about whether this should be a new permission, I recommend creating a new discussion.
It is not intended :(
Done. I think regardless of us doing it this is a good change for API compat.
If the API is not ready, why was this feature made public? It's not like anyone knew it was coming... it could have been delayed for months, and no user would have been upset because it wasn't announced.
There is a chicken vs egg problem here. We need to get the feature in the hands of actual people often to stress test, confirm assumptions, and also to feel out if it matches with the platform. We do various levels of release to accomplish that.
I don't mean to be rude, but there is no conclusion that is acceptable for server owners other than adding a new permission for this. They are already being spammed. I do not want anyone other than moderators to be able to post them. As is, the only way to prevent every single user who has the ability to send messages from using polls is with third party applications, and that is not acceptable.
Definitely heard.
bots cannot vote, or it is documented for future usage?
bots cannot vote, there's a line in the documentation somewhere about it.
i know, but why this error code is documented?
It would be helpful to support one time payment SKUs. I'm building an app that heavily relies on generative AI and I'm exploring what sort of payment model would work best, while ensuring I don't lose money on model usage. One idea is to have a credit based system where users prepay credits that get deducted at they use AI related features. I'm worried that with a pure subscription model, heavy users will end up costing me too much money, forcing me to raise subscription prices higher. I can ...
Uhm, maybe I'm confused but this is an error that has a code. So I felt that it should be here? o_O
A quick question, can webhook started polls be pre-expired (like, end them before the poll closes automatically)?
We're unlikely to support this. :( If you need to manually end your polls, create a bot so it can own the polls.
It is not intended :(
Being able to end a poll started by someone else feels like a useful feature to me
Looks like it's now implemented and will be available very soon. Original
Looks like Text/Description component for modals is now implemented and will be available very soon. Original
unsubscribe
On Tue, 16 Apr 2024 at 9:29โฏPM TheKing-OfTime @.***>
wrote:
Looks like Text/Description component for modals is now implemented and
will be available very soon. Original
https://github.com/Discord-Datamining/Discord-Datamining/commit/6cd090e40e59e34e360d23afb51d05ac879c958a#commitcomment-141034450
image.png (view on web)
https://github.com/discord/discord-api-docs/assets/68960526/e968de27-d0ef-4e72-8119-30b4f13b807cโ
Reply to this email dir...
Another question: Would it be possible to re-open polls? For instance, when they expire after a week
When going through the documentation earlier I found at first glance all examples provided appeared valid unless you looked. This just puts them in 2 sections to make it easier to split valid and invalid examples of nesting.
Discord has announced a Create Polls permission or similar, they are going to be documented, right? ๐
I am having the same issue with all image urls, including your own cdn.
@lmle True, it wasn't qualifiable as a bug if it was intended, but there is still documentation to add. As Ckohen said, this sentence is missing in current docs:
Manage permissions in an override allows you to set any permissions on that channel.
This is private information about the user that should not be exposed publicly. As such, accessing it requires the
IDENTITYoauth scope.
There is no reason to make it private, other than to inconvenience developers, aswell as silently removing it without actually mentioning it rather having to look for a git issue reporting the "issue".
Now i have to look for another method to determine a discord's account suspicious level when used to join game servers.
As external service oauth i...
I am having the same issue even with images served with cloudflare like:
https://s4.anilist.co/file/anilistcdn/character/large/b138850-eqwZ11Q6sLrl.png
I noticed that discord sends ~5 requests for the same image with no delay between requests,...
There is no reason to make it private, other than to inconvenience developers, aswell as silently removing it without actually mentioning it rather having to look for a git issue reporting the "issue".
It was not mentioned to be public nor was it part of the documented API without the scope. These comments are not justifiable: you relied on undocumented and unintentional behaviour.
There is no reason to make it private, other than to inconvenience developers, aswell as silently removing it without actually mentioning it rather having to look for a git issue reporting the "issue".
It was not mentioned to be public nor was it part of the documented API without the scope. These comments are not justifiable: you relied on undocumented and unintentional behaviour.
Perhaps discord should focus on making the api documentation more clear then, and then silently re...
Another question: Would it be possible to re-open polls ( Via API or otherwise ) ? For instance, when they expire after a week
No, polls closing is a final state.
Discord has announced a Create Polls permission or similar, they are going to be documented, right? ๐
Yes.
We are not adding this back without an oauth2 scope at this time.
I am locking this discussion, as no further conversation here is productive.
The comment on how the documentation can be improved has been noted. PRs are welcome, if you'd like to help us re-format this data to clarify.
Started happening in my bot around ~2 weeks ago. And really frequently too.
it is also empty in GET /webhooks/{webhook.id}/{webhook.token}/messages/{message.id}
This endpoint will start including both reactions and poll results.
But actually I've been thinking about my decision in https://github.com/discord/discord-api-docs/pull/6746#discussion_r1536461865 and I actually think it's better for the future if results is nullable for gateway events and maybe some API endpoints. There is a certain amount of complexity for getting results for the gateway event th...
Hi just wanted to check on this because it affects Android as well (or at least Android through Supabase OAuth)
In case you missed it, this newest update to the docs includes the SEND_POLLS permission. Client support is still rolling out for it (like graying it out) but it should be done in at most a few hours :)
I believe that I have resolved all outstanding issues. If nothing bad comes up, this PR will be merged by EOD.
@tpcstld Should this be CREATE_POLLS to match what the client shows?

No, this is what we are calling the permission internally, we try to use SEND_ or USE_ suffix.
Does a poll naturally "expiring" also fire a MESSAGE_UPDATE event, or is this only when someone manually ends it?
Does a poll naturally "expiring" also fire a
MESSAGE_UPDATEevent, or is this only when someone manually ends it?
I believe it does from what I have seen myself.
Does a poll naturally "expiring" also fire a
MESSAGE_UPDATEevent, or is this only when someone manually ends it?
Yes, specifically it is sent when the poll finishes counting the votes. :)
Are there still cases where this error code is returned?
@tpcstld
Final issue i've found, sending content and embeds with polls works fine but it seems attachments collide with undocumented poll features; could this be disabled for now, or are we meant to implement compatibility...?
Specifically, 50035 Invalid Form Body - In poll: Poll attachment_ids must correspond with attachments data
Final issue i've found, sending content and embeds with polls works fine but it seems attachments collide with undocumented poll features; could this be disabled for now, or are we meant to implement compatibility...?
Specifically,50035 Invalid Form Body - In poll: Poll attachment_ids must correspond with attachments data
Yes, there was PollLayoutType.IMAGE_ONLY_ANSWERS with value 2 available, probably that.
A simple link that I could redirect to, that would redirect the client for them, if the client is open, would be plenty for me.
Any update on this? Is this possible now?
There are some substantial changes coming to voice encryption this year.
Once that work is complete we will update the documentation to reflect the changes as well as get up to date with the existing modes that haven't yet been documented.
Is the context field also documented as not always available due to ping interactions? Should it also have the note that it is available in all interaction types except ping? If so, I can incude it in this pr.