Bump, is it still planned to make this optional?
#github-notifications
1 messages ยท Page 10 of 1
Bump, is it still planned to make this optional?
it is already optional
It's not documented as so, unless I'm missing something
Is there any update or ETA on this one? :)
Thanks for the heads up, will fix this soon
It's not documented as so, unless I'm missing something
I mainly asked for this in light of creating polls which now use the poll create object, where it's still optional.
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...?
For now you're not able to have attachments with the poll, sorry. :P
I said EOD but got distracted. :P
Will there be an addition to the change log with information about this new feature in the future?
Thanks for continuing to provide info everyone. We had to take a break from investigating this but it is still on our radar, and we should resume investigation shortly
i also want a user to be guided with buttons through subcommands/groups.
Description
Audit logs of some integration changes have wrong sender info on them, namely, it appears as if the affected user added a role unto itself, which violates API preconditions on modifying roles for non-ADMINISTRATOR users.
Steps to Reproduce
fetch the audit log (reproducible on both bot API and web client)
Expected Behavior
Integrations have @discord as the sender and the affected user as the target user
Current Behavior
Audit logs of some integration change...
you can add a role to yourself via both onboarding and linked roles
I tried to follow the example in the docs and it didn't work; I found the correct usage in https://github.com/discord/embedded-app-sdk/blob/main/patch-url-mappings.md
The current code examples do not select the correct avatar color
Not sure if this is a bug but the results object behaves weird
If the poll is open, it returns only the till not selected options in answer_counts:
If the poll gets closed with /expire, the answer_counts object is empty and the is_finalized is still false:
If th...
Description
When I put emoji into the name of link which I want to markdown like [text๐](link), it doesn't work. But it works properly in embeds
Steps to Reproduce
- Markdown a link with an emodji in text-part โ [Best of lofi hip hop 2023 ๐ - beats to relax/study to](https://youtu.be/mmKguZohAck), for example
- Send it as text-message in discord
- It won't work properly
- Delete an emodji from text-part โ [Best of lofi hip hop 2023 - beats to relax/study to](https://youtu...
do you happen to know how to do so? I've been trying to figure out how to send attachments over HTTP interactions, but haven't been able to figure it out.
I'll forward this this request to my team to update documentation. Thank you!
Can you elaborate here on what these things mean? For example in the second row, what does "in servers" and "in mutual servers" actually mean?
Also what does "GUILD is present" mean? Is that referring to the interaction having a guild property (meaning it was run in a guild)? Does that mean the interaction's context is GUILD? Either way, it just means the interaction was executed in a guild
In the moment that we are registering app commands, we are meant to specify the scope in which they work.
These two are the integration_types and contexts
For this reason, GUILD_INSTALL refers to the integration type and GUILD refers to the context
The inconsistency I notice is, that despite I'm specifying that a command can't be installed in guilds, it does show anyways if the GUILD context is provided. Similarly if I specify that the command can be installed but yet no guild c...
The two fields are working exactly as intended. If you want a command to work only if the bot is in the server, or with the bot's DM, then you specify integration_types=[GUILD_INSTALL].
There is no way to specify that you want a command to work in DMs between users specifically when they share a guild with the app installed, because that is simply not how user installed commands work
that makes sense, right, I suppose it'd probably be best for such use case to just keep it open and use the interaction's authorization info to tell and rather solve it in the code, thanks for the answer
The two fields are working exactly as intended. If you want a command to work only if the bot is in the server, or with the bot's DM, then you specify integration_types=[GUILD_INSTALL].
There is no way to specify that you want a command to work in DMs between users specifically when they share a guild with the app installed, because that is simply not how user installed commands work
Yesterday, the SEND_POLLS permission was shipped to the client (last permission within the category "text channel permissions") and added to the documentation (see https://github.com/discord/discord-api-docs/pull/6746#issuecomment-2062393133), so this feature request is solved as well! I am glad that the feedback from you and many other individuals was heard!

Hey, thanks for this amazing feature! I've already been trying to implement it.
Do we know when this will be fully documented and rolled out (in an announcement) yet?
I know - rolling out has been released (or is close it it) judging on if everybody gets it, though it is not yet documented.
Needed to build a Bot that can create Guest Invite, but seem the api blocked for Bot user ๐ Hope it will be documented soon
i see there is still no update on that even though the new permission system has been deployed. i know this is not a big issue but i think this can be done by allowing some overrides to make the command usable. i made an entire system just for this use case and now i need to move it to a slash command, which will require to enter the message id and this is not even user-friendly
Talking about context menu commands btw, they are having the same issue
Is this endpoint working as intended? Used it to ban 150 users, one was already banned so it comes down to 149. All those bans were successful, but i still got 500000 Failed to ban users instead of the two arrays.
Hey there! This is expected behavior. Emojis aren't allowed in masked links because because clicking them has undefined behavior and expectations, so this is behaving as expected.
Hi @ker0olos @cjm333 and @LordTylus . Joining this thread to help solve the issue. I've been performing some tests since last Friday based on the information provided here, using same hosts and/or images, but I couldn't reproduce the issue on my side.
We've made some changes to media last week, so I want to confirm with you first if the issue is still occurring as of today/last Friday?
If it is, I need to be able to either reproduce the issue or at least get a "fresh" trace from one of ...
Hello @remiolivier-discord,
thank you for the update. I just tried out my reproducer I posted above again. And all 20 of 20 images have been posted correctly.
I will test out different URLs later, when I have a little more time. But so far it seems to be working fine.
Closing issue due to inactivity, but please open if more info available
@Lulalaby I think you're saying that the message returned from the /expire endpoint has empty results right? I will fix this. This is a bug.
a408a7f Add note and reference known issue of requests ... - matthova
Good callout. I think I need to be more specific, here. So an activity can make a requests to one of these supported ports, i.e. https://<app_id>.discordsays.com. Separately, the url mapping can route the final request to a specific port, but... due to the known issue listed below, the port will be removed and the original port of the original request will be maintained
a2378af Replace user_id with user object on message int... - azycheng
Gesendet von Outlook fรผr Androidhttps://aka.ms/AAb9ysg
Von: Matt Hova @.>
Gesendet: Montag, April 22, 2024 10:58:12 PM
An: discord/discord-api-docs @.>
Cc: Subscribed @.***>
Betreff: Re: [discord/discord-api-docs] Add note and reference known issue of requests to external ports being remapped (PR #6814)
@matthova commented on this pull request.
In docs/activities/Development_Guid...
d1b439c Split port considerations into two sections - matthova
@colinloretz this may break urls. wdyt? We can roll it back to Supported Ports if necessary.
- Update
Channel.md - Note: Message Interaction Metadata is currently in preview
Maybe Iframe Supported Ports to be more specific
Gesendet von Outlook fรผr Androidhttps://aka.ms/AAb9ysg
Von: Matt Hova @.>
Gesendet: Montag, April 22, 2024 11:16:32 PM
An: discord/discord-api-docs @.>
Cc: Miami87 @.>; Comment @.>
Betreff: Re: [discord/discord-api-docs] Add note and reference known issue of requests to external ports being remapped (PR #6814)
@matthova commented on this pull request.
In docs/activiti...
Gesendet von Outlook fรผr Androidhttps://aka.ms/AAb9ysg
From: Matt Hova @.>
Sent: Monday, April 22, 2024 11:16:32 PM
To: discord/discord-api-docs @.>
Cc: Miami87 @.>; Comment @.>
Subject: Re: [discord/discord-api-docs] Add note and reference known issue of requests to external ports being remapped (PR #6814)
@matthova commented on this pull request.
In docs/activities/Develo...
6559448 More specific reference to iframes for requests... - matthova
Gesendet von Outlook fรผr Androidhttps://aka.ms/AAb9ysg
Von: Colin Loretz @.>
Gesendet: Dienstag, April 23, 2024 1:10:54 AM
An: discord/discord-api-docs @.>
Cc: Miami87 @.>; Comment @.>
Betreff: Re: [discord/discord-api-docs] Add note and reference known issue of requests to external ports being remapped (PR #6814)
@colinloretz approved this pull request.
โ
Reply to this email directly, view it on GitHu...
cabc1c0 Add note and reference known issue of requests ... - matthova
b164945 fix patchUrlMappings code example (#6808) - advaith1
Ooo lol yeah that makes way more sense. Great catch. We'll want to update this in the sdk example as well.
Why are we removing names for the steps?
tax is not as drop in as it claims to be.
-
It does not type check, so we need to run tsc anyways to validate types, eslint can do some of that for us, but not all. Alternatively we trust that our ides will do a good job of that (which we know wont always happen)
-
This requires changes to tsconfig to account for the fact that the code is being "bundled"
-
While we haven't set it up yet, it is possible to cache the build output, which is not possible with tsx
0357135 Fix markdown, log relative to root - stevenpetryk
re #3, the intention here is just to ensure the MDX is valid, not to build it.
18be3ba Ensure folks are on NodeJS 20.11 - stevenpetryk
I do think that until branch protection is enabled here, the risk to the monorepo remains. I was able to push my hotfix directly to main yesterday.
The point here was around my node => tsx change, which is all pretty valid ๐คท
- good callout, added a
npm run buildas part of the lint - yeah, probably could change that, not hurting anything atm
- This is for quick scripts, I am not terribly concerned with performance - ergonomics while developing is a little more important here
ccbb2cf fix the busted demonstration mdx - JustinBeckwith
it's not adding anything valuable, and makes reading this file hard
b472a4d build: validate mdx and md (#6816) - JustinBeckwith
Gesendet von Outlook fรผr Androidhttps://aka.ms/AAb9ysg
From: Justin Beckwith @.>
Sent: Tuesday, April 23, 2024 5:49:57 PM
To: discord/discord-api-docs @.>
Cc: Subscribed @.***>
Subject: Re: [discord/discord-api-docs] build: validate mdx (PR #6816)
@JustinBeckwith commented on this pull request.
In .github/workflows/test.yaml<https://github.com/discord/discord-api-docs/pull/6816#dis...
3a9ea58 Replace user_id with user object on message int... - azycheng
a4feaa8 Update permissions needed for PATCH member.flag... - hemu
how did the markdown table check succeeded
@colinloretz i think it broke
Add documentation for message forwards.
A message forward gives users the ability to send a snapshot of a message in one channel to another channel.
- snapshots are immutable, and do not receive updates from the original message (unlike replies)
- Similar to a REPLY message, a forward is created using a
message_reference.
[discord/discord-api-docs] New review comment on pull request #6818: [docs] Message Forwards feature
is type included when receiving the message? if so, then is it DEFAULT for all messages other than forwards (crossposts, follows, pins, replies, thread creates, and thread starters)?
[discord/discord-api-docs] New review comment on pull request #6818: [docs] Message Forwards feature
messages don't have an author_id field, they have an author object
[discord/discord-api-docs] New review comment on pull request #6818: [docs] Message Forwards feature
| type? \* | integer | type of reference. Determines how associated data is populated. |
markdown tables
[discord/discord-api-docs] New review comment on pull request #6818: [docs] Message Forwards feature
type will be included. However there will be a period in which old instance will not have this field set, in which case it should be assumed to have 0 set.
if so, then is it DEFAULT for all messages other than forwards (crossposts, follows, pins, replies, thread creates, and thread starters)?
I think there's some confusion here. type in this case if the MessageReference Type, not the message content type.
Thanks for feedback peeps. Just FYI this is a DRAFT, but comments obviously welcome.
[discord/discord-api-docs] New review comment on pull request #6818: [docs] Message Forwards feature
yeah, but all of those message types use message references for different purposes, they aren't just used for replies. so it feels weird to use one message reference type for 6 different purposes and one type for one purpose.
[discord/discord-api-docs] New review comment on pull request #6818: [docs] Message Forwards feature
I see the issue. I thought that was a different section based off Message. I'll think of a way to clean this up.
Is the node engine requirement satisfied by whatever installs this package? Last I heard it was still on node 16, so snek removed my >18 engines check
yeah, we are using a pretty modern version of node internally to package and build this :)
For anyone else who runs into this problem with discord.js, I was able to fix it by setting the client's activity in the client constructor, instead of setting it later.
const activityOptions: ActivityOptions = { ... };
const client = new Client({
presence: {
activities: [activityOptions],
},
...
};
It's been a couple weeks since I implemented this, and I haven't needed to refresh the activity at all.
This solution was suggested here: https://github.com/disco...
Hey anyone please help me out to fix this problem in simple way please help me
how did the markdown table check succeeded @colinloretz i think it broke
oh did i break something in the table?
88fc659 Update permissions needed for PATCH member.flag... - hemu
Yeah the table is broken, but it seems it was way before this pull request. Still the workflow should've thrown
Yeah the table is broken, but it seems it was way before this pull request. Still the workflow should've thrown
by broken do you mean the columns are not consistently lined up if viewing the file in a text editor?
Yeah the table is broken, but it seems it was way before this pull request. Still the workflow should've thrown
by broken do you mean the columns are not consistently lined up if viewing the file in a text editor?
didnt close )
| Field | Type | Description ...
e7b6236 fix table col alignment - hemu
One-time purchases are here, along with Stores for Premium Apps.
- New SKU Object Types
- New Entitlement Object Types
- Consume an Entitlement
consumedfield on the Entitlement resource
oh i guess that markdown tables formatter that is failing right now is what left in this state in the first place, nevermind. When I run npm run fix:tables the formatting went back to the state its in on main. Just going to close this PR out.
b9358ca npm run fix:tables - hemu
3f03a4c restore previous field ordering - hemu
added closing marker and re-ran npm run fix:tables and things seem aligned so i think we should be good: https://github.com/discord/discord-api-docs/pull/6819
90d3aa7 Add closing table column marker for Guilds tabl... - hemu
does that fires any events? such as ENTITLEMENT_UPDATE?
Two new features are now available for Premium Apps: One-Time Purchases and Stores.
i think repetitive since "available for Premium Apps:..."
Once you've confirmed eligibility for your app and team, you will be able to set up a [SKU](#DOCS_MONETIZATION_SKUS) to represent your app's premium offering via subscriptions or items.
can keep this acronym in the SKU page but not helpful here idt
While creating and editing SKUs in your [app's settings](https://discord.com/developers/applications) on the `Monetization -> Manage SKUs` tab, you have a few options for managing your SKUs visibility and publishing to your users:
are these sequential steps that need to be taken? should it be a numbered list instead of bulleted?
will revisit some of this with more detail after its live ๐
f0d1615 Premium Apps: One-Time Purchase SKUs + Managing... - colinloretz
Why do we suddenly change the way of how notes are done?
can you elaborate what notes are? Do you mean the *? after 4 * I thought it was very hard to distinguish/count at a glance.
I am also experiencing this issue, however it appears that I do not receive authorizing_integration_owners when a command only has the 0 (guild) integration type. If this command is run in a guild, the authorizing_integration_owners field is undefined. Using Oceanic v1.10.2.
Can the data of the last 30 days be retrieved? One context is that we conduct some customer service business through private chat on Discord. If the service crashes for a long time (10 minutes), it may cause all data to be lost. Therefore, we hope to get some historical data for reference.
Want to do some data recovery in the case of reconnection, after all, the server may experience unpredictable crashes.
I've already posted a message in the community, but I'm wondering if there's a way to...
Yeah I mean that. Every else on the docs we use the * symbols to create notes, it's weird if one place suddenly uses numbers.
Please keep the numbers, even as someone with very minor sight issues repetitive symbols is not an accessible way to show table footnotes.
I don't think anyone is going to care about continuity on this one table when it increases readability.
The goal is to keep the docs consistent tho, so we'd have to go and change all tables then at some point
CC @colinloretz
There are already numerous inconsistencies in the docs, I know that is being worked on which is great, but issues like this that affect the legibility and accessibility of the docs are not the hill to die on.
How does this work privacy wise? Can I prevent users from forwarding messages, especially in DMs?
@sdanialraza i added the fields to the documentation as well
Bump, I really would love to see this as a feature using a date picker as input, so many ways this could be used.
How does this work privacy wise? Can I prevent users from forwarding messages, especially in DMs?
We have had large internal debates about this, and privacy is a top concern, but I don't think this is the best forum bring up the concerns.
There will be an announcement soon about this feature which should answer some questions.
High level though:
- if you can view it you can forward it (we limit some content based on UX/technical viability)
- how I think of it is. If you can see ...
A fix for this issue has been merged and should be deployed soon. Thank you for the report.
authoris explicitly removed from snapshot for privacy reasons
does this mean that all forwarded messages from private channels (dms, non public guilds, ...) are anonymous without any author attribution? (if i understood correctly, it would contain the original channel & message id, so you would be able to easily access author info for messages forwarded from public servers)
i feel like that would kinda cripple the usefulness of forwards. maybe it could contain only the author's dis...
yeah, imo forwards are not useful if they don't have any author information, since then they are worse than screenshots.
does this mean that all forwarded messages from private channels (dms, non public guilds, ...) are anonymous without any author attribution? (if i understood correctly, it would contain the original channel & message id, so you would be able to easily access author info for messages forwarded from public servers)
Yes. Bit deep into the weeds here, but having view access to the message means being able to see the author. However in the case where you don't have those perms it would be con...
If the main issue is PII, why should this feature exist in the first place to be honest.
And if we would take PII aside, it'd be a cool feature with author info for moderation cases.
I.e. someone sends scam or other stuff in dms to a member, and the member could forward it 1:1 to the moderation team in a ticket.
But i guess that's out of question.
Currently, only the callback gateway events support webhook reception. Why can't other events also be received through webhook? I've seen many other platforms receive through callbacks when accessing APIs, which seems more complete. If there is a retry mechanism, it can ensure that data is not lost. The current use of the websocket access is much more complicated than the callback.
Description
Hello,
I try to send file from Buffer, but I have an issue with encoding. My file content is encode in 'utf-8' but Discord message preview is not.
When Discord unfurls the attachment as a preview, it looks like it's content sniffing. In this case, it appears to be text/plain; charset=ISO-8859-1.
bot.ts
import { AttachmentBuilder, Client, Events, GatewayIntentBits, TextChannel } from "discord.js";
import { Buffer } from "node:buffer";
const client...
Dear Discord Team,
I'm writing to offer a suggestion for enhancing security measures within the platform, particularly concerning token encryption and authentication protocols. As a user who values privacy and security, I believe it's crucial to prioritize the protection of user data, especially during authentication processes.
Currently, the token used for account validation with the server lacks encryption, posing potential risks to user accounts. To address this, I propose implemen...
tokens are already per-session and they are already encrypted.
tokens are already per-session and they are already encrypted.
How did a user steal my token and yet had a valid token to send messages behave of me. All my dms were flooded with weird Porn Links.
Then on top of that, i was not in any of there servers. Not clicked any links but yet somehow my account was compromised.
Dear Discord Team,
I'm writing to offer a suggestion for enhancing security measures within the platform, particularly concerning token encryption and authentication protocols. As a user who values privacy and security, I believe it's crucial to prioritize the protection of user data, especially during authentication processes.
Currently, the token used for account validation with the server lacks encryption, posing potential risks to user accounts. To address this, I propose implemen...
Then on top of that, i was not in any of there servers. Not clicked any links but yet somehow my account was compromised.
You've done something - because people don't just randomly find tokens out of nowhere, that's not how it works.
I applaud Discord for putting privacy first here, and very much hope there will remain a way to at least opt out of people being able to forward our messages to anyone with undeniable proof of authorship attached to the message. Other things, such as the usefulness of the feature, can be considered, but should not come at the expense of privacy. Otherwise, this feature would be a massive privacy disaster. I would be fine with a display name (and perhaps profile picture, while making sure it d...
As for "not the right forum", is there a "right" forum aside from Discord Admins, which only a select few have access to? I am not too concerned right now given the current proposal, but I do believe users have the right to express any potential concerns about such a feature before it's released.
There's a thread attached to the announcement in DDevs too
Thanks, I missed that. I only saw an announcement from Discord Admins relayed through a feed in another server.
therwise, this feature would be a massive privacy disaster. I would be fine with a display name (and perhaps profile picture, while making sure it doesn't accidentally serve as undeniable proof of authorship by using the exact same URL as the user's profile picture).
Exactly. We don't view member/display name in a DM/guild as PII since it can be changed to whatever you want as your display. We discussed snapshotting these display names and filling them in via UX to expand the forward fea...
00a49ff table formatting lint is too damn sensitive - lytefast
I cannot figure out this table lint...
The only remaining place where we can repro this behavior, currently, is on Android Samsung devices.
Unfortunately this is known buggy behavior even within native Android apps. Due to this, it's most likely something that would have to be patched by Samsung rather than us.
do you have a repro that does not involve using a library? (eg curl)
Would it make more sense to move the fields in message_snapshot to the top level? On a data level, that would make it seem as if the forwarding user was sending the message themselves. That matches my mental model of forwarding, but maybe the design team are going to convey a different mental model when they do UI?
dont run untrusted software on your computer ๐คก
The complexity allows for greater efficiency, with no need for HTTP headers, high-latency reconnects, and session pain.
[discord/discord-api-docs] New review comment on pull request #6818: [docs] Message Forwards feature
`content`, `embeds`, `attachments`, `timestamp`, `edited_timestamp`, `flags`.
[discord/discord-api-docs] New review comment on pull request #6818: [docs] Message Forwards feature
- Required fields: `type`, `message_id`, `channel_id`
Looks like you missed putting snowflakes as strings in the example
{
"message_reference": {
"type": 1, // FORWARD
"message_id": "123456789012345678",
"channel_id": "123456789012345678",
"guild_id": "123456789012345678"
},
}
No ! I have not ! But I can try to make an example with it !
What is this sku_id used for?
It identifies the actual decoration - sometimes they edit the image so there are different assets corresponding to the same decoration but the sku id will be the same for everyone. I think there is currently no way for bots to fetch additional information for an sku though.
Description
Blah blah blah
Steps to Reproduce
Smd
Expected Behavior
Have a good day
Current Behavior
Omg ever
Screenshots/Videos
No response
Client and System Information
Omfg
This is visible with our Minecraft Discord server chat. Started happening several months ago.
The Discord API documentation appear to be incorrect currently. I can not get any of the X-RateLimit-* headers in the API response. Also the documentation says if I exceed the rate limit, I will get a JSON reply with details, but instead I am getting a CloudFlare HTML page. Is the API going to match reality soon or is this an open issue? I would LOVE to throttle my code IF the API actually sent back the headers the documentation says it will, but it doesn't. Help? Thanks! :)
Why not, we all know discord loves the feet
@adubry75 you're using a bot token, right? Ratelimit headers aren't returned if you use user tokens (which is against the ToS anyway).
If you get a cloudflare response back, you're likely hitting the Invalid Requests Limit. Outside of the documented limits, these bans are known to also happens when fetching invites at high velocity or when using some user-only endpoints.
Anyway, if you'...
Thanks Zoddo, I was not aware the documentation was only meant for bots and not users, that seems weird but thanks for that info, that explains things. I did notice that I am getting the "Retry-after" header though which is handy. Thanks again!
Would it make more sense to move the fields in
message_snapshotto the top level? On a data level, that would make it seem as if the forwarding user was sending the message themselves. That matches my mental model of forwarding, but maybe the design team are going to convey a different mental model when they do UI?
We discussed this approach as well, especially for backwards compat rendering, however abandoned it because of the misunderstandings that could occur. Couple of fields on me...
In the current documentation the poll property in the message structure links to the poll creation structure.
Whenever you go to these links it is said the domain is now for sale.
The Discordbot is not sending an Accept-Encoding header when pulling in external requests. So it would be great if it can do this, to save bandwidth on all sides (API, data center, publisher). Better for performance and climate-friendlier.
Good options to consider:
- gzip - well-known, implemented by most web servers
- brotli - better compression rates than gzip, implemented by more and more web server, almost all modern browsers support it
- zstd - even better compression, not widely...
What is the reason for them to be hosted on media.discordapp.net instead of the usual cdn.discordapp.com btw.
@JustinBeckwith hmm should we even have stickers in that CDN table if they aren't at the CDN base URL? if we wanna keep in table i think the callout should move up to the Image Base Url section or within an asterisk callout under the table
8d9b4d5 feat: remove autocode tools, domain for sale (#... - JayXTQ
[discord/discord-api-docs] New review comment on pull request #6818: [docs] Message Forwards feature
- These messages have an array of [`message_snapshots`](#DOCS_RESOURCES_CHANNEL/message-snapshot-object) field containing a copy of the original message. This copy follows the same structure as a message, but only has the minimum set of fields returned required for context/rendering (notably, the `author` field is excluded)
[discord/discord-api-docs] New review comment on pull request #6818: [docs] Message Forwards feature
| message \* | [message] | subset of fields in the [message object](#DOCS_RESOURCES_CHANNEL/message-object) |
[discord/discord-api-docs] New review comment on pull request #6818: [docs] Message Forwards feature
- the requestor must have `VIEW_CHANNEL` permissions
assuming this is view channel
[discord/discord-api-docs] New review comment on pull request #6818: [docs] Message Forwards feature
is it accurate that this is only text-based messages? the wording is a bit hard to parse right now so finding out how to suggest something a little cleaner.
[discord/discord-api-docs] New review comment on pull request #6818: [docs] Message Forwards feature
Determines how associated data is populated.
| Type | Value | Coupled Message Field | Description |
[discord/discord-api-docs] New review comment on pull request #6818: [docs] Message Forwards feature
not sure this section is necessary, particularly the "there will be more types of messages which have this information in the future" part
b1449c3 fix defaultAvatarIndex calculation in activity ... - advaith1
[discord/discord-api-docs] New review comment on pull request #6818: [docs] Message Forwards feature
I feel like this bullet point sticks out more, which is the intent
[discord/discord-api-docs] New review comment on pull request #6818: [docs] Message Forwards feature
FYI this is pre-existing, but I agree. Removing this future phrase, and reordering a bit.
[discord/discord-api-docs] New review comment on pull request #6818: [docs] Message Forwards feature
No you can have media, but I specifically left it open-ended since I don't really want to re-list out all the conditions of what is forwardable at the moment (besides the message_type). The strong bindings for example mean things like activity, polls, etc.
[discord/discord-api-docs] New review comment on pull request #6818: [docs] Message Forwards feature
only replies have referenced_message - do non-reply messages that use message_reference also use DEFAULT or do they not have a type?
[discord/discord-api-docs] New review comment on pull request #6818: [docs] Message Forwards feature
I don't know if the cases where message_reference are used outside of REPLY message types, but yes they would use MessageReference.Type.DEFAULT. At least for now since that's the backwards compatible value for the field. Using FORWARD in those references would not be respected at this stage.
I think this call out is specific to GIF stickers - but I defer to @jkcailteux here
57a5077 [docs] Message Forwards feature (#6818) - lytefast
@JustinBeckwith hmm should we even have stickers in that CDN table if they aren't at the CDN base URL? if we wanna keep in table i think the callout should move up to the Image Base Url section or within an asterisk callout under the table
All stickers are technically in the CDN so its probably right to keep that there. Although i can see why its confusing since you can't access GIF stickers that way...
What is the reason for them to be served from media.discordapp.net instead of th...
This has been silently added, but very few if any RPC libraries (and especially not the official one that's deprecated anyways) support manually setting the type.
Looks like setting type through RPC still doesn't work (except for embedded activities) - it always sends type 0.
Is the time bar avail for all listening type activities yet?
The progress bar used to be available but then they locked it to Spotify a few years ago - the client literally requires the name to be "Spotify" to render it.
Oh my beloved cloudflare..
OK fair, thanks for the insight
it would eliminate so many custom interaction handlers!
This issue is periodically mentioned in the Discord developer discord and each time no one gets any assistance with it. If you search the Discord for "ClearActivity" you'll see tons of results.
For now I'm getting around this by sending up a blanked out activity when I want to clear it, but it would be really good if this issue could get some attention. Even a short sentence explaining the situation would help.
We have to do some stuff via cloudflare workers to get our media proxy to work with GIFs in this situation (without it, theres no point in even supporting GIFs for stickers), so we have to route the request through mediaproxy and have the worker look into the CDN.
Apparently, some CDN URL like avatars are already transparently routed through the media proxy despite being accessed on cdn.discordapp.com.
Example: https://cdn.discordapp.com/avatars/643945264868098049/c6a249645d46209f33...
30fe26e Revert "[docs] Message Forwards feature (#6818)" - shaydewael
unreleased right now, so going to hold off on merging
83d649e Revert "[docs] Message Forwards feature (#6818)... - shaydewael
0a7d731 Add callout for sticker gif urls (#6831) - JustinBeckwith
Reopens #6818 since it's not released yet
Description
Newly sent Published Messages through Announcement Channels are showing the profile picture & display name of the original Author, instead of the Server Icon, Server Name, and Channel Name, of the origin Server & Channel.
This seems to affect newly sent Published Messages, not older ones.
(If this isn't an API bug but instead a client bug, whoops! Seems like API tho so thought to try here first ๐ )
Steps to Reproduce
- Follow any Announcement Channel into any ot...
I can reproduce this API bug. Crossposted messages now include an author_id and a webhook_id. Discord's serialization logic prioritizes author_id while constructing the author object. This means that the author has ownership of the crossposted message in all follower channels. To repair broken messages after a new API deployment, Discord may need to set the author_id field to null for any messages with both fields set simultaneously.
This has been reverted and will be deployed shortly.
Hello @remiolivier-discord,
I'm facing a similar issue when using a bot to create embeds on a server (the thumbnail image, nor image fields, have their images loading). The URLs also don't load when posted to a channel standalone.
The details you'd requested -
- API type: bot
- Framework used: discord.py
- Image URL used?
https://wavu.wiki/t/Special:Redirect/file/Reina-1,1,2.jpg
https://wavu.wiki/w/images/4/49/Reina-1%2C1%2C2.jpg
https://wa...
6521006 [clans] Adds documentation for user clan inform... - hammerdr
Users can join Guilds (called clans in documentation) and as part of that
process can adopt the guild's tag as their own. This tag is displayed in
the client next to their name.
This documents the clan tags that might come down on the user object. Clans
are a feature that is not yet released, so this is subject to change.
In addition, the full clan object is not yet documented because it is still
in development. This is just the tag that will be displayed next to the user's
name.
[discord-api-docs] Branch clans/user-documentation was force-pushed to `90296f0`
[discord-api-docs] Branch clans/user-documentation was force-pushed to `ee625de`
Imagine a place where the devs actually do greats updates
| clan? | ?[user clan](#DOCS_RESOURCES_USER/user-object-user-clan) object | the user's clan data | identify |
Leaving the table formatting aside (which currently this would probably break) the corresponding object should be mentioned in the type column entry and not the description to stay consistent across the docs...
Description
I noticed while creating my own server, that when I create or modify a role, the save button sometimes disappears. This caused me inconvenience while creating ranks because I needed to restart the application to make the button appear again.
Username : 3_bc
Steps to Reproduce
1-Re-review the saving code
2-Verify that the problem is from the saving code
3-Rewrite the code correctly
Expected Behavior
I expected the problem to be closed, but I noticed that it was...
Will there be an option for server owners to disable showing clan tags in their server? I feel like messages would get quite cluttered otherwise, especially for servers completely unrelated to gaming.
Agreed, that should be definitely kept in mind.
A message author can currently have
- their name
- a role icon
- a app / verified app tag
- a linked role badge
Additionally to have a clan badge next to it would fill the whole author line probably at some point.
I assume that's what was meant?
Another update. Additionally, my application for relationships.read got denied. It seems like this feature is now inaccessible.
Thank you for your extreme patience while we investigated this internally. Upon review, this change was made as a security fix and unfortunately, the previous functionality of the scope cannot return.
My apologies for the inconvenience as I recognize this must be frustrating, but we greatly appreciate your respect and understanding for the safety and sec...
This is not an issue related to the Discord API. Please report client bugs at https://dis.gd/bugreport
Description
If you create a new thread in a forum channel with a webhook (i.e. send a message and pass the thread_name argument) then sometimes the webhook message is not the original thread message, but simply the first message.
This means that the thread looks as if the first message had been deleted, see the screenshot below.
Steps to Reproduce
- Create a webhook that sends a message to a forum channel and provide a
thread_name. - Trigger the webhook.
- Look.
##...
Description
A failed activity message appears whilst sending a command or when a command has failed to send.
Steps to Reproduce
- Use a command
Expected Behavior
The command is displayed to the user normally.
Current Behavior
A failed activity message appears
Screenshots/Videos
Client and System Information
- canary 290661 (216a0e6) Host 0.0.492 arm64 macOS 14 (23.4.0)
- stable 290453 (a3c6e6a) Host 0.0.303 arm64 macOS 14 (23.4.0)
Still getting the same error in d.js-14.14.1.
Related to this, can activity messages be given a new message type? Currently they use CONTEXT_MENU_COMMAND which is misleading since that type is meant for application commands.
export interface SetConfigInput {
use_interactive_pip: boolean;
}
Source: https://github.com/discord/embedded-app-sdk/blob/main/src/commands/setConfig.ts
Description
Hello! I have a problem.
So I own a bot repository/bot list server and I wanted to add more bots. My server is unaffected by this change (a.k.a integration limit to 50) because I have more than 50 bots. But now when I try to add a bot, I suddenly can't anymore and I get this error message.
This change was so sudden that I don't even know if this is intentional. T...
This limit is not enforced retroactive as in your server can have more integrations if it had those before the limit was added. However when you try to add another integration the limit is checked
This limit is not enforced retroactive as in your server can have more integrations if it had those before the limit was added. However when you try to add another integration the limit is checked
Sure I get it but it only affects to new servers or servers with less than 50+ bots. And I can add more even after change. Yesterday, I was able to add more bots but now I can't.
Please refer to this message from the Discord Developers Server to see what i mean:
.
I would hazard a guess your use case is not going to be supported here.
I think you are misunderstanding the wording here. The change that was implemented means that there is a max limit of 50 integrations, for servers above that limit, your integrations are not going to be removed, but you will not be able to add more (because you are already above that limit).
I would hazard a guess your use case is not going to be supported here.
That's strange. If that's the case then, Discord probably would have stopped me and other servers who have already r...
This is a bug and will be fixed.
Thank you. I hope the fix comes soon.
Description
I would like to see documentation for these signals so they can be automated over bots for spam purposes.
I do not see anything in the API documentation over it
Steps to Reproduce
N/A
Expected Behavior
N/A
Current Behavior
N/A
Screenshots/Videos
No response
Client and System Information
N/A
Entitlements have been added but SKUs are incredibly complex and will be significantly delayed.
Fix is merged and will be available later today.
I believe the reported issue was fixed over the weekend. @advaith1 feel free to open a new issue for the secondary concern
The reference page specifies the supported formats for boolean query params, but people don't see it. This PR adds links to the reference section in the query param tables so it will be visible when needed.
fixes
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'discord-api-docs@1.1.1',
npm WARN EBADENGINE required: { node: '>= 20.11.0' },
npm WARN EBADENGINE current: { node: 'v18.20.2', npm: '10.5.0' }
npm WARN EBADENGINE }
Heads up we still have Nostrum users receiving these structs.
It's not critical for us anymore since we added protections to remove struct keys received from upstream, but does remain a bug.
Date / Calendar Select?
Another updated for the post! Again, thank you for your support!
- Replaced placeholder component type numbers with
0. - Added preview for Text Component (AKA Label Component).
- Added a new status for features: Development Started. So you will actually know if Discord already started to develop a feature.
- Added Date Picker Component.
- A few unnecessary changes for a better readability.
Feel free to share your ideas!
@jb3
Heads up we still have Nostrum users receiving these structs.
It's not critical for us anymore since we added protections to remove struct keys received from upstream, but does remain a bug.
Do you know which struct is being sent over the gateway? Is it still the Guilds.Models.ScheduledEventException or some other struct key?
SelectMenu would make a lot of user interactions so much better! Also, simple text fields / labels to explain the modal usage to the user.
i am seeing the same issue. adding MessageContent intent did not help.
I could see files themselves as a modal attachment being abused, however please, please add the ability for at least Image attachments. I literally stopped making discord apps and bots for this sole reason... I should not have to direct my users to an outside server just facilitate uploading an image by allowing them to either copy/paste it or select the image from their system.
You can use attachment options in slash commands
As of right now, using the guilds.members.read scope, the guild member object does not return a permissions field. I think this would be useful, as I personally would be quite wary as a user of the workaround using the guilds scope. Granting guilds to applications I don't completely trust can be used for substantial tracking and profiling, and I don't like the thought of even being able to do that. Requiring the application to already know the guild ID could allow for some more principl...
https://github.com/discord/discord-api-docs/issues/4938#issuecomment-1161686135 provided an indication that there is a new version of the GameSDK that has "ActivitySupportedPlatformFlags", its likely this will work there.
I'lll, play around I guess.
Why was this new version not documented?
Pretty sure that comment is referring to version 3.2.1, which seems to be the one people are having this issue on.
You're right, thank you!
I had multiple editor windows open and was confused.
I played around in: https://github.com/ProbablePrime/DiscordRichPresenceClear.
I thought setting activity.SupportedPlatforms = (uint)ActivitySupportedPlatformFlags.Desktop;, might help as that's the item from the error message. But alas no, it will still fail.
Hi! This looks like a different issue, but for this one, wavu.wiki is blocking our discord service to retrieve images and returns a 403, therefore we can't display the image
Hello again @remiolivier-discord,
I am terribly sorry for the long delay, but today I finally got to performing a thorough test. I have used my bot to post 100 different embeds and all 100 worked flawlessly.
So, I will now change my bots back to embed URLs instead of uploading them to discord whenever needed.
I don't know about all the others that have posted here, but as far as I am concerned, my Issue has been resolved.
68ee76c get previews and cards working - JustinBeckwith
Hello again @remiolivier-discord,
I am terribly sorry for the long delay, but today I finally got to performing a thorough test. I have used my bot to post 100 different embeds and all 100 worked flawlessly.
So, I will now change my bots back to embed URLs instead of uploading them to discord whenever needed.
I don't know about all the others that have posted here, but as far as I am concerned, my Issue has been resolved.
Great news! Happy it is working normally!
4626fb8 add some preview markers back in - JustinBeckwith
Description
I've started receiving odd Missing Permission errors in my bots logs in the past months despite checking for all required channel permissions, finally being able to track them down to the fact that timeouts seem to suddenly affect bots now.
I'm certain this used to not be the case, with bots being exempt from timeouts. More perplexing, this behavior seems to be inconsistent now between regular messages and slash commands.
Steps to Reproduce
- Time out a bot in a ser...
Description
I added a description for my bot in all 30 supported languages in anticipation of supporting them in my bot.
The elegibility page now tells me i must add a description, but i already have!
Furthermore, it disabled the disable button, telling me i need to make changes, but as far as i can tell my app directory listing is still live as it was made live previously.
see: app id 620654573547159553
Steps to Reproduce
Add descriptions of bot in 30 languages and click save...
Description
every time i save my description the CDN masking link is prepended to the image urls.
This happens every time, until the image urls become unmanageable. I am sure at some point, this will reach a limit where the urls won't work.
Steps to Reproduce
add image link to markdown in app directory page. save repeatedly without making changes.
Expected Behavior
should only add the masking cdn once, or better, make this transparent to the user so it doesnt show in th...
shhhhh don't mind the CI, it's fine
1f5a548 make filenames lowercase to fix building (#6849) - advaith1
Description
This has been an issue in my bot for months.
My bot receives command requests through its interactions endpoint url.
I mostly respond to all messages by deferring and updating the message later when the data is ready, since that's a better option UX wise.
Following the docs, editing an initial messages is through:
PATCH /webhooks///messages/@original
This works, most of the time, but sometimes, the tokens discord sends me don't work.
As you can see in ...
If you're going to proceed with this, the ci shall be fixed (I'll do it)
I and at least one other user in this Forum Channel thread on the Discord Developers server were confused about how sharding worked with different num_shards for different sessions. I have rewritten some of the sharding explanation to hopefully be a bit more clear about how it actually works, based on discussion with @Zoddo in the aforementioned thread. Please correct anything I may have gotten wrong.
A certain gateway session is only subscribed to events from guilds with a `guild_id` that fulfil the following formula, using the `shard_id` and `num_shards` that the session provided in the [Identify](#DOCS_TOPICS_GATEWAY_EVENTS/identify) event:
Every session with `shard_id = 0` will be subscribed to DMs and other non-guild related events.
As an example, if you wanted to split events equally between three shards, you'd use the following values for `shard` for each session: `[0, 3]`, `[1, 3]`, and `[2, 3]`. DMs would only be sent to the `[0, 3]` shard.
Sessions that would like to only receive events from a subset of guilds should send the `shard` array in the [Identify](#DOCS_TOPICS_GATEWAY_EVENTS/identify) payload. The first item in this array is `shard_id`, the zero-based integer value of the current shard, while the second is `num_shards` and represents the total number of shards.
For consistency with the remaining of the page.
shard_id = (guild_id >> 22) % num_shards
that change is incorrect. == is an equality operator, = sets the shard_id SO it was correct.
zoddo said that it is fine
- Hampus โ Today at 18:34
also noticed this @Zoddo โ seems like an incorrect find & replace, guess you could suggest an edit for that as well while you're at it
[<Image>](https://cdn.discordapp.com/attachments/381887113391505410/1238514447635582977/image.png?ex=663f8ff6&is=663e3e76&hm=f3f3010b08a21dfc6a2f774b18532fb1243bcc2e82ff640344af400ff87a...
The most common usage is imo calculating based on the guild id, on which shard the guild is located on, hence I suggest not changing it
This example is meant to calculate the shard id for given guild_id, not to check the equality.
No, the whole section preceding this formula explains which events will be received by a specific shard (and not which shards will receive a specific event). So you should look at the formula in the context of a shard (the shard_id is known in this case). The previous version of this section was causing confusion to devs that aren't proficient with how Discord is working; you should [take a l...
that sounds like a good way
Description
Providing an empty interaction response produces an empty message in a broken state. The pseudo-message of "Sending command" is updated to have no content, which causes some interesting behavior in the client. This behavior is exhibited both with HTTP interactions (returning the data as the response) and gateway interactions (POSTing to /callback). For the latter, Discord does return an error to the bot, but not the client.
Steps to Reproduce
Respond to an interacti...
Description
fhrefbdggfzsdfsdg
Steps to Reproduce
fhrefbdggfzsdfsdg
Expected Behavior
fhrefbdggfzsdfsdg
Current Behavior
fhrefbdggfzsdfsdg
Screenshots/Videos
fhrefbdggfzsdfsdg
Client and System Information
fhrefbdggfzsdfsdg
3 years later ๐ I can die peacefully now knowing that
A certain gateway session is only subscribed to events from guilds with a `guild_id` that satisfies the following formula, using the `shard_id` and `num_shards` that the session provided in the [Identify](#DOCS_TOPICS_GATEWAY_EVENTS/identify) event:
it would be "fulfils" but satisfies works better here
+1. This was quite confusing to me when implementing polls in DiscordBM.
I would pretty much appreciate if this would get added.
There are lots of use cases for the this and it would make sense to pass the banner as the icon already gets passed.
Description
Updating an attachment on a message that has been crossposted will not show the new attachment in other servers
Steps to Reproduce
- Create an Announcement Channel
- Follow the Announcement Channel in a different channel/server
- In the Announcement Channel, send a message via the API with a Bot user that contains an attachment
- Crosspost/Publish the message (manually or via the API, doesn't matter)
- Send a Message Edit request where you will upload a different at...
**_**HI I want discord to remove this 50 integration limit or add a Way to request 50+ integration limit as many servers needed it even me
This isn't good to limit sever apps**_**
I've yet to actually hear of a good reason that someone wants 50+ integrations, but I've heard plenty of arguments from Discord and from bot developers that it's a huge boon
**_**HI I want discord to remove this 50 integration limit or add a Way to request 50+ integration limit as many servers needed it even me
This isn't good to limit sever apps actually removing this limit would be good**_**
this limitation was removed week ago (for guilds that already have 50+ bots): https://github.com/discord/discord-api-docs/issues/6842#issuecomment-2096562087
I am talking about new servers and server without 50+ apps
I am talking about new servers and server without 50+ apps
**_**HI I want discord to remove this 50 integration limit or add a Way to request 50+ integration limit as many servers needed it even me
This isn't good to limit sever apps actually removing this limit would be good**_**
Then they should give the option to request it
Why would you need it?
Because of my server purpose
I want to add all my bots in my one server+ some other reasons
"i just want to" isn't a very good reason, not when it comes to technical things like bots. what could you possibly need 50+ bots for??
Maybe it could be a dynamic limit. So the limit could be a ratio between member and integrations. That would be imo a good solution because moste bot devs i talked to dont like it when their bot is in a bot farm and also i think those servers are a unnecessary strain on discords infra
But like... okay, take the minecraft discord. Third largest server on Discord. we have a grand total of like... 6 bots.
Dyno, Boten Anna, Ravager, EnderDragon, Matchbox, and one other. we are at about 12% of this limit. That's nothing. I can't see why any server would need 8 times as many bots as the third largest server on the platform.
There are many bots that provide some game functionality in discord, so i can see a "arcade" server as a valid reason for many bots. But tbh i also think 50 integrations is plenty, just had that idea.
this limit is totally worst
Whats your reasoning other than "i want many bots"?
Description
My bot speaks to server members via DM, and then posts their responses in a logging channel that only server moderators can see.
The posts include the tag of the author by using
On PC, moderators can press on the tags to view the author's discord profile and send them a DM.
However, on both Iphone and Android, those tags don't work. Instead, an error incorrectly states that "This link is to a user you don't have access to."
Screenshots included display the exact same pos...
I don't think you can really provide any good reason for 50 bots other than "just because" :shrug:, 50 is well more than enough and is a reasonable limit. More than 50 bots in the application commands menu would simply be unusable.
Ok just do itโฆ.
Better shutdown all so eazy better only one person use my satellite.. no
need use my internet..good never ever hold world no need use internet fuck
On Mon, May 13, 2024 at 1:35 AM MAKGAMEROFFICIAL @.***>
wrote:
**_**HI I want discord to remove this 50 integration limit or add a Way to
request 50+ integration limit as many servers needed it even meThis isn't good to limit sever apps actually removing this limit would be
good**_**โ
Reply t...
This limit was put in place because Discord only indexes up to 50 integrations. Removing it would simply make the issue more invisible. We will not be raising the number of integrations that are indexed.
Will these functions be introduced in the automod in the future?
This is necessary for more complex and high-quality rules of automoderation.
probably not, considering that adding these features requires switching to a backtracking based regex engine, which in turn introduces the possibility for regex denial of service.
you can try it yourself locally in nodejs, which does use backtracking. this regex match will take very long to complete:
/(a*)*b/.test("a".repeat(2000))
its not possible to reliably detect such denial of service attacks without heavily restricting the options of the regex
Okay, I get it.
Anyway, thanks for the quick reply โค
probably not, considering that adding these features requires switching to a backtracking based regex engine, which in turn introduces the possibility for regex denial of service.
you can try it yourself locally in nodejs, which does use backtracking. this regex match will take very long to complete. you can craft an even worse regex & input text combination that will take hours or even days to complete
/(a*)*b/.test("a".repeat(2000))
its not possible to reliably detect s...
Why was naming convention approved? This is going to cause a ton of confusion for every new developer. Now we have two naming discrepancies that are even conflicting. Server -> Guild and Guild -> Clan. I'm really disappointed in this decision and dread the amount of confusion this will cause.
Description
banner and accent_color are returned for the message author when fetching a message. These properties always seem to be null.
Steps to Reproduce
- Find a message whose author has either a profile banner or a profile theme set
- Run the following replacing
channel_idwith a channel_idandmessage_id` of a message id:curl 'https://discord.com/api/v10/channels/channel_id/messages/message_id' \ --request GET \ --header 'Authorization: B...
511a6f2 Fixed code example for setConfig() command (#6841) - Nonolanlan1007
ef2c448 Add DiscordSDK.close() to Embedded App Sdk (#6770) - Zoom-Developer
51fe02d Link to actuall poll object in message structur... - MazeXP
Description
My bot received a message update event containing resolved data of a role which had its permissions sent as a number, rather than a string as documented. This is obviously breaking behavior and should be looked into.
Formatted payload (removed all IDs except the one of Dank Memer):
{
"webhook_id": "270904126974590976",
"type": 19,
"tts": false,
"timestamp": "202...
are you sure that you're using api v10? permissions_new doesn't exist on >v7
are you sure that you're using api v10?
permissions_newdoesn't exist on >v7
I'm using https://github.com/disgoorg/disgo which is running on API v10, yes
9c037b5 Add error code 40333 (#6557) - IllagerCaptain
Great callout. Yes, no scopes are required for this command.
This is a rough edge case where we offer an enum, but getting to it is a bit verbose
lock_state: Common.OrientationLockStateTypeObject.LANDSCAPE,
picture_in_picture_lock_state: Common.OrientationLockStateTypeObject.LANDSCAPE,
grid_lock_state: Common.OrientationLockStateTypeObject.UNLOCKED
Ideally we could also show above this snippet
import {Common} from '@discord/embedded-app-sdk';
d78bade Getting Started has been corrected a bit. (#6584) - Kimii55
can you send steps that reproduce this problem? i used discord.py (v2.4, master branch) but doesn't seem to reproducible for me with editing origin message as response to interaction, nor usual edit channel message
can you send steps that reproduce this problem? i used discord.py (v2.4, master branch) but doesn't seem to reproducible for me with editing origin message as response to interaction, nor usual edit channel message
not right now, no. this event was caused by a 3rd party bot (Dank Memer)
looks if responder uses api v6, >v7 receivers will get same payload as v6:
from discord import ui
class Setup(ui.View):
@ui.select(placeholder='Setting', options=[
discord.SelectOption(label='Foo', value='foo'),
discord.SelectOption(label='Events', value='bar')
])
async def setting(self, interaction: discord.Interaction, select: ui.Select):
if select.values[0] == 'bar':
await interaction.response.edit_message(view=EventsS...
3df1c15 Add missing me_burst in message example (#6489) - Doc94
e4b8c73 docs: document connection type domain (#6395) - Lulalaby
c657a9b Update usage notes for setOrientationLockState - matthova
A bit more verbose than I'd like but it's "state of the art" ๐
available to bots in interactions so why not
[discord/discord-api-docs] New comment on pull request #6332: Document `inventory_settings` property
Apologies - this field looks to be flagged as deprecated, and private :/ Closing this out for now.
I see this multiple times a week on a deferred request using https://github.com/Snazzah/slash-create (yet another completely different library), on a bot that's in one server and gets ~5 requests/day. Mine's hosted on Cloudflare Workers; is it possible that some global rate limit is getting hit on a hosting provider basis? (I don't know how I would investigate that.)
Happens to regularly in both discord.py and nextcord. I have 70ms latency and usually respond to commands well within a second, so I think its an API issue.
Ive discussed this in a few places already, but this field is for our specific UI and is subject to change as our UI changes.
@codershiba this is still messed up. Note: we are using npm ci instead of npm install in CI, so it's going to get exactly what's in package-lock.json. This may be one of those cases where it makes sense to delete package-lock.json, run npm install, and get a fresh one as part of your changes.
| sku_id | snowflake | id of the avatar decoration's SKU |
c583bb1 Update avatar decoration docs (#6464) - advaith1
da652ca Remove outdated notice of interaction @everyone... - wasdennnoch
Commands can be registered via HTTP requests after an app is authorized with the `applications.commands` scope. The `applications.commands` scope is also automatically included when an app requests the `bot` scope.
c0f42dd Update upgrading to slash commands tutorial (#6... - nathanctech
rip #5783 long live
oops classic i messed this up sorry jupith
4337f7e Add guild_id field to Guild Audit Log Entry Cre... - abitofevrything
Thank you for the PR! We have this field marked explicitly as private internally, and not part of the public API. If you ever want to check - we explicitly call out which fields we support in our Open API spec:
https://github.com/discord/discord-api-spec/blob/main/specs/openapi.json
this reads as more confusing to me in context honestly. if we wanna revisit this, we should probably do it another way (like adding emoji/visual indicator).
| HOME_SETTINGS_CREATE | 190 | Guild Server Guide was created | |
| ONBOARDING_PROMPT_CREATE | 163 | Guild Onboarding Question was created | [Onboarding Prompt Structure](#DOCS_RESOURCES_GUILD/guild-onboarding-object-onboarding-prompt-structure) |
| ONBOARDING_PROMPT_UPDATE | 164 | Guild Onboarding Question was updated | [Onboarding Prompt Structure](#DOCS_RESOURCES_GUILD/guild-onboarding-object-onboarding-prompt-structure) |
| HOME_SETTINGS_UPDATE | 191 | Guild Server Guide was updated | |
After further deliberation we've decided to mark these fields as public. the initial reasoning behind why they were private was because apps could not actually ever see this field in the course of normal operations (you couldn't call apps, and apps could not participate in GDMs) where this field would be present.
But now with user apps, and it being available in interactions, apps can indeed see this field as part of their normal operations.
As such we're accepting this PR, and as we...
Information about the call in a private channel.
this is not guaranteed to be populated if/when the call ends. it's best effort.
| call? | [message call](#DOCS_RESOURCES_CHANNEL/message-call-object) object | the call associated with the message |
[discord/discord-api-docs] New review comment on pull request #6177: update application command docs
| Field | Type | Description | Valid Option Types |
i know this is different than what is in table above, but trying to make explicit
The fields will not be present when null in the next API deploy
f7393bd add message.call field (#6864) - MCausc78
15245c2 feat: Add banner field in Modify Current User r... - MinerPL
Actually it turned out changing this was more trouble than I thought. Its not really a bug though, so Im just gonna leave it as-is
Its not really a bug though, so Im just gonna leave it as-is
For clarity, are you saying that when a user has a banner and Discord says they do not, that is intended behaviour?
Its intended behavior that this API does not return the banner information
incorrect null responses cause issues for libraries since their user processing would see that the field is null and then update the cached user object to change the field to null, assuming that the user's banner has been removed
Is this affecting anyone in practice? IMO API requests shouldn't be updating stateful models, that's what the gateway events are for
API requests should have the most up to date state as much as possible, so it just makes sense to have this properly populated.
Hey everyone, I'm one of the engineering leads of the team testing this feature out. We understand the confusion around guilds and server terminology. This is just an experiment at this time. If we decide to roll this out more broadly after the experiment concludes, we intend to come up with a better name that will be consistent across our Developer API and how we refer to it in the product. We know this might cause some confusion while the experiment is live and intend to clean things up soo...
Anyone able to reproduce MESSAGE_UPDATE not sending a poll result with is_finalized = true after a poll expires?
Adds notes about polls being locked behind the message content intent where they are missing.
a5d753f Update usage notes for setOrientationLockState ... - matthova
Thanks for surfacing the issue! Addressed in #6863
Is this affecting anyone in practice? IMO API requests shouldn't be updating stateful models, that's what the gateway events are for
This would be a reasonable way to go about this. If there actually was any gateway event that had the banner and accentColor properties this is about. But there isnโt. So API requests are the only way to update the state of them. It you instead implement a gateway event to send these on change Iโd be very happy to not change the data based on the API requ...
bb3699a update application command docs (#6177) - valdotle
spec says call is nullable - when is that the case and should that be reflected in the docs?
spec says call is nullable - when is that the case and should that be reflected in the docs?
https://github.com/discord/discord-api-spec?tab=readme-ov-file#known-issues
no to #6233 yes to this!!!!
nah we didn't do this. rest in pieces, non-permanent invites for friend servers ๐ซก
29c34ce bring over guild partial (#6870) - shaydewael
I think it should be resolved now, doesn't seem to error anymore.
Forum channels definitely support webhooks, but I haven't found any way to create one via the OAuth flow, which is frustrating since that's how our users subscribe to our news feed.
e8e1468 chore: Migrate ESlint to flat config (#6834) - codershiba
so im all for documenting this behavior more explicitly, but when i was testing it looked like polls was a bit differentโcontent, embeds, and attachments are empty values, but poll is actually just not sent as a field when you don't have message content intent enabled.
would love for this to be consistent at API layer at some point and have it actually just be an empty object or a partial, but for now we should probably document explicitly that it isn't passed if the app doesn't ha...
Any app that does not have the message content intent configured in its app's settings within the Developer Portal will receive empty values in fields that expose message content across Discord's APIs (including the `content`, `embeds`, `attachments`, `components`, and `poll` fields). These restrictions do not apply for messages that a bot or app sends, in DMs that it receives, or in messages in which it is mentioned.
this is probs my doing but i only noticed it now
yeah i would like it to be non-partial without MESSAGE_CONTENT, but with empty strings and no emoji:
With intent: ```json
{
"id": "1",
"fields fields fields": "fields",
"poll": {
"question": {"text": "Favorite Discord Clients"},
"answers": [
{"answer_id": 1, "poll_media": {"text": "Stable"}},
{"answer_id": 2, "poll_media": {"text": "PTB"}},
{"answer_id": 3, "poll_media": {"text": "Canary"}}
],
"expiry": "2024....",
"allow_multiselect"...
Oh well, I just intended to add the bits #6746 missed, but it seems like I opened a (small) can of worms here. Guess I'll think of a way to convey this as little verbose as possible these days / am open to suggestions in the meantime...
db3c57a add guild member flags to the guild member upda... - Erk-
Description
I have a testing server for webhooks, and sending the Execute request having a poll object on the request body, the response is always a HTTP 403
Steps to Reproduce
Set up your URL for the Execute request
Then in the request body set this JSON
...
Description
I have a bot once a day post some polls, sleeps until they are expired, checks is_finalized repeatedly (with an increasing delay) until it is true, then uses the results from the poll. The polls that were posted yesterday expired at 11pm Eastern Time and have a grand total of seven votes, but the API is still reporting them as not finalized. Previously they have worked fine.
Steps to Reproduce
The polls were created with a POST to /channels//messages with the duration s...
f71e8a5 Add super-reactions to MESSAGE_REACTION_ADD and... - JJRcop
Follow up on missing type re: #6375
I'm investigating this.
looks like polls still locked under experiment for webhooks but not bots. for temporary fix you can copy paste X-Super-Properties from your client or use mine:
x-super-properties: eyJvcyI6IldpbmRvd3MiLCJicm93c2VyIjoiRGlzY29yZCBDbGllbnQiLCJyZWxlYXNlX2NoYW5uZWwiOiJjYW5hcnkiLCJjbGllbnRfdmVyc2lvbiI6IjEuMC4zNTQiLCJvc192ZXJzaW9uIjoiMTAuMC4yMjAwMCIsIm9zX2FyY2giOiJ4NjQiLCJhcHBfYXJjaCI6Ing2NCIsInN5c3RlbV9sb2NhbGUiOiJlbiIsImJyb3dzZXJfdXNlcl9hZ2VudCI6Ik1vemlsbGEvNS4wIChXaW5kb3dzIE5UIDEwLjA7I...
I'm gonna rip the experiment gate out, should be done by EOD.
d004892 Added type to reaction gateway events (#6873) - colinloretz
Due to shenanigans the code is merged internally, but the production API deploy for this will be done tomorrow!
Update: This is caused by some infrastructure issues internally. We're mitigating the issue but it will take at least a day for things to clear.
[discord/discord-api-docs] New comment on discussion #6449: Allow disabling markdown for link titles
I'm a bit stumped on this one also. Seems like there's no way to escape brackets aside from removing them.
Below I've attached examples on what it would look like. From the Bot profile, and the Discord Developer Portal.
I think this would be a great addition to applications, especially if the bot is offline and the user don't know where to go, the support server will be right th...
looks like for default sounds the id is in a string (e.g. "1") in the API but a number in this gw event ๐ซ
small copy updates
and you don't have to add, but there's also
ONBOARDING_PROMPT_DELETE(165) andONBOARDING_CREATE(166) are marked public and related to the ones you included ;)
Alright done
oop sorry i didn't see this was in change log before. can we leave this how it was for historical log of changes?
Any app that does not have the message content intent configured in its app's settings within the Developer Portal will receive empty values in fields that expose message content across Discord's APIs (including the `content`, `embeds`, `attachments`, and `components` fields). These restrictions do not apply for messages that a bot or app sends, in DMs that it rec...
> An app will receive empty values in the `content`, `embeds`, `attachments`, and `components` fields while `poll` will be omitted if they have not configured (or been approved for) the [`MESSAGE_CONTENT` privileged intent (`1 << 15`)](#DOCS_TOPICS_GATEWAY/message-content-intent).
i think this one from below is clearer, so let's just shift it to be consistent
Copyright 2016-Present Discord
@Misha-133 if you want to make this change, we can close this once and for all ๐ฅณ
@Misha-133 if you want to make this change, we can close this once and for all ๐ฅณ
Done :P
ac361cf Bump year in LICENSE-CODE (#6594) - Misha-133
[discord-api-docs] Branch joshperez/premium-interactions was force-pushed to `ef23d7c`
- [ ] Needs new
button_styles.pngimage.
Sorry about these, they were done automatically. If you want me to revert I can.
| sku_id? | snowflake | Identifier for a purchasable SKU, only available when using [ButtonStyle.Premium](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/button-object-button-styles) |
this may confuse developers that might think that PING/PONG/APPLICATION_COMMAND_AUTOCOMPLETE/APPLICATION_COMMAND_AUTOCOMPLETE_RESULT are deprecated. maybe place it under ****?
226dacb Update docs/interactions/Message_Components.md - goatslacker
I think adding a fourth asterisk is a bit much but I do agree the wording is confusing. Maybe this can all look neater too since this is how it currently looks like
<img width="1139" alt="Screenshot 2024-05-16 at 3 55 43โฏPM" src="https://github.com/discord/discord-api-docs/assets/10632/8eb0f96f-4baf-4a24-8e46-f485eddd2f5a">
2f89235 fix tables - goatslacker
Maybe this can all look neater too
I'd agree that putting it in the footnote isn't optimal. Maybe put the deprecation note in a warn box instead...
8588250 Revert rm whitespace - goatslacker
This gets restated below, under Type 10 Interaction Response:
https://github.com/discord/discord-api-docs/blob/8588250bf8543b25638bac0cf0f5268f9205b138/docs/monetization/App_Subscriptions.md?plain=1#L77-L81
| PREMIUM_REQUIRED\*\*\* | 10 | [**Deprecated**](#DOCS_CHANGE_LOG/premium-interactions); respond to an interaction with an upgrade button, only available for apps with monetization enabled |
Introducing a new `premium` [button style](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/button-object-button-styles) to be used with an `sku_id` which points to an active [SKU](#DOC_MONETIZATION_SKUS/sku-object). This allows developers to customize their premium experience.
**Premium Apps: New Premium Button Style**
| sku_id? | snowflake | Identifier for a purchasable [SKU](#DOC_MONETIZATION_SKUS/sku-object), only available when using premium-style buttons |
yeah it's relevant in both cases.
I agree that "satisfy" is a better word choice, singular form is also correct thank you.
That seems reasonable. Thank you.
Why custom_id is required when using style 6? Just curious, if docs say only "sku_id" is required.
Traceback (most recent call last):
File "/home/***/venv/lib/python3.10/site-packages/jishaku/features/python.py", line 190, in jsk_python
async for send, result in AsyncSender(executor): # type: ignore
File "/home/***/venv/lib/python3.10/site-packages/jishaku/functools.py", line 124, in _internal
value = await base.asend(self.send_value)
File "/home/***/venv/lib/python3.10...
yeah it's relevant in both cases.
it just seems redundant, since it's already started once here and then again under the sub header on the same page
Not true and it is very important. For browser, it must be set to VAD leading value. For Discord Client, it must be set to zero.
Do not understand why this sentence is needed.
[discord/discord-api-docs] Issue opened: #6876 /users/:id returns 404 on users with no mutual guilds
Description
Trying to fetch a user by their id via the /users/:id endpoint fails with a 404 NOT FOUND if you have no mutual guilds with that user
Bots seem unaffected by this, it only applies to normal users
Steps to Reproduce
- send a GET request to
discord.com/api/v10/users/938607182323273829 - Observe that it returns 404 even though this user exists
Expected Behavior
It should return the user object
Current Behavior
It returns 404
Screenshots/Videos
_...
c888c8e [gateway] Clarify Reconnect opcode, Document zs... - ypisetsky
This clarifies that Reconnect can come at any time, even before hello. Also, document the resurrected zstd-stream gateway compression option.
Considering that this worked fine before today and you can still fetch bots fine, just not users, it seems like this change might have been intentional. Maybe to improve security / prevent user scraping?
If yes, I ask you to please reconsider. There are many good use cases for a bot needing to fetch arbitrary users and this breaks a ton of apps that do so.
And this achieves really little for actually improving privacy.
This is a very sudden and unwelcomed change. We store Discord IDs of the users we banned from our guild, and for readability and enforcing we used this call.
I really hope this is something they published by mistake and will revoke soon.
This is a very bad change. I have a discord bot that has to check rather or not a user is still using the bot so it can comply with data removal times (it checks if the user is still in a server with the bot). But due to the new change it can't check that and it breaks my whole code.
Now, if you get a 404, you know they are not in a mutual guild! ๐คฃ
Please revert this very irrational change. This does nothing but hurt bots as a whole.
Now, if you get a 404, you know they are not in a mutual guild! ๐คฃ
It doesn't get past that line of code tho, it just breaks. therefore i cannot "delete" their data
The change is being reverted
2d1cd79 also add zstd-stream to query string docs - ypisetsky
Transport compression enables optional compression for all packets when Discord is sending events over the connection. The currently-available transport compression options are `zlib-stream` and `zstd-stream`.
[discord/discord-api-docs] Issue opened: #6878 New text channel activities doesn't work in my server
Description
In my server, even with the permission "Use Activities" enabled for the user and the channel it doesn't work.
It only works if the user has Administrator access.
guild: 1076155409481601044
Steps to Reproduce
Give a role permission to "Use Activities"
On desktop, click on (+), Start Activity
Activity list shows up
Pick any activity
Expected Behavior
I expect the activity to start
Current Behavior
Activity list stays open and the click doesn't do anythi...
The reconnect event is dispatched when a client should reconnect to the gateway (and resume their existing session, if they have one). This can occur at any point in the gateway connection lifecycle, even before/in place of receiving a [Hello](#DOCS_TOPICS_GATEWAY_EVENTS/hello) event. A few seconds after the reconnect event is dispatched, the connection may be closed by the server.
It seems this bug cannot be reproduced anymore as of today, has it actually been fixed? Waiting for an official reply before closing the issue.
This is only usable by bots though, and bots can't be used in a browser context due to CORS. I'm not sure what I should write then?
Because you should never set it to 0, it only causes issues.
This happens to me at random times (I use discord.js) when I try to defer replies, before which there is no other time consuming processing going on. I do have ~300ms of latency so I'm not sure if it's a spike causing it, but it happens far too often in a week.
+1 I sometimes get random Unknown Interaction errors using discord.js and discordeno as well sometimes. I've gotten to the point I use HTTP interactions as a workaround.
curious, but why some fields in user.clan in interaction.resolved.messages[x] are null? Happens with some users
{
"type": 0,
"tts": false,
"timestamp": "2024-05-19T17:21:27.550000+00:00",
"pinned": false,
"mentions": [],
"mention_roles": [],
"mention_everyone": false,
"id": "1241802919326646283",
"flags": 0,
"embeds": [],
"edited_timestamp": null,
"content": "haven't seen you in a while",
"components": [],
"channel_id": "1241787241014104...
if they've disabled identity shouldn't this whole clan object just not be serialized?
Getting this issue on latest versions of JDA and Discord.JS, seems like something wrong with discord itself not any single library.
Hi! This looks like a different issue, but for this one,
wavu.wikiis blocking our discord service to retrieve images and returns a 403, therefore we can't display the image
Thank you for checking @remiolivier-discord. I'll try to investigate and report back if we are unable to find an issue on our end.
Good news everyone! You can totally do this now :)
You can see this on the bot profile card!
<img width="449" alt="image" src="https://github.com/discord/discord-api-docs/assets/534619/27bf59cb-3bb0-4b63-9827-1f1216f2f07f">
It would be very useful, moderation-wise, for the timestamp of when a user was banned to be returned when fetching bans.
With new Discord features that allow for a better native moderation, without the need of moderation bots; this is a key feature for any moderators dealing with unban requests.
I assume this is a 1-minute change, so if it could be added it would be very appreciated :)
Current Response
.
Im getting the same error
make sure the client id used for authorization matches the bot's client id (i.e. they must be the same application).
I think my problem was using the code from the Oauth2 portal, instead of using the API with that code, so I was using a completely different thing. Thanks for your reply!
f1d76eb USE_EMBEDDED_ACTIVITIES -> USE_EXTERNAL_APPS - sklein12
We're going to be expanding USE_EMBEDDED_ACTIVITIES to cover activities and user installed apps. Renaming the permission and updating the description to accurately reflect the behavior.
[discord-api-docs] Branch sklein12/update-permission was force-pushed to `76aafcb`
channel type list needs to be updated
This is a rather poor decision. As a moderator of a larger server, I do not want to have to disable user apps entirely in order to get rid of the moderation concern that activities bring.
Really hope this gets reconsidered.
I am not a fan of this. I (and probably many others) have already disabled activities for users but now, User Apps are going to end up being disabled too unintentionally.
The moderator side of me does not want activities but the developer side of me absolutely wants user apps to work, especially since I have a bot that I use a lot myself through user apps
I am not a fan of this. I (and probably many others) have already disabled activities for users but now, User Apps are going to end up being disabled too unintentionally.
The moderator side of me does not want activities but the developer side of me absolutely wants user apps to work, especially since I have a bot that I use a lot myself through user apps
Your user apps will still work, it'll just be forced ephemeral.
Your user apps will still work, it'll just be forced ephemeral.
I don't believe this solves the issue I'm having? I want to be able to, for example, enable activities and not have user commands in the server (which is impossible with the permission merge) - or disable activities and maintain the global availability of user commands (which, while yes commands still run ephemerally, removes a lot of usefulness for a lot of bots).
I am not a fan of this. I (and probably many others) have already disabled activities for users but now, User Apps are going to end up being disabled too unintentionally.
The moderator side of me does not want activities but the developer side of me absolutely wants user apps to work, especially since I have a bot that I use a lot myself through user appsYour user apps will still work, it'll just be forced ephemeral.
That doesn't work for commands that rely on having a pub...
I feel like this could make sense if you disable use external apps for voice channels, but allow it on other types of channels. Although on the other end, you'd have to disallow user apps entirely on voice channels.
activities work in text channels now so that doesn't really work
activities work in text channels now so that doesn't really work
oh yah I forgot
Does USE_APPLICATION_COMMANDS feel like a better permission to tie forcing ephemeral to? Users with User Apps will be allowed to use their own application commands only in ways that respond to them but not server wide?
I'm worried about the edge case here but I don't agree that activities and apps should be thought of the same where activities has the power to draw a badge on the server icon it just feels a lot more powerful. I just don't want to come without suggestions :)
Does
USE_APPLICATION_COMMANDSfeel like a better permission to tie forcing ephemeral to? Users with User Apps will be allowed to use their own application commands only in ways that respond to them but not server wide?I'm worried about the edge case here but I don't agree that activities and apps should be thought of the same where activities has the power to draw a badge on the server icon it just feels a lot more powerful. I just don't want to come without suggestions :)
No, m...
Description
Running a user app slash command in a thread, then locking the thread before the command can respond (for example via deferred message or followup) will result in an unavoidable error.
If the bot is in the server the
{"message": "Thread is archived", "code": 50083}
error will be returned by the API. If the bot is not in the server, the error will be
{"message": "Missing Access", "code": 50001}
Steps to Reproduce
- Run a slash command ...
Thanks for reporting this
Is there a possibility of using the unused USE_CLYDE_AI bit for the user apps permission, or does that need to remain untouched for backwards compatibility sake?
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.
The inherent usage here is we want to allow individuals to run ephemeral context menu commands in read-only chan...
This works for user-installed commands now, but it is intentionally disabled for guild-installed commands.
The thing is, I can't keep track of this bot-side as I need it to know a user's last message immediately after the feature is implemented. I may have to resort to the same method as Vip3rLi0n in this comment otherwise.
| USE_EXTERNAL_APPS | `0x0000008000000000` `(1 << 39)` | Allows user-installed commands and Activities (applications with the `EMBEDDED` flag) | V |
Description
It seems whenever a reoccurring event does end, rather than sending COMPLETED, it sends SCHEDULED.
This works as expected when ending a non-reoccurring event, by sending the COMPLETED status.
This might be intended as normal behavior just thought I'd report it.
Steps to Reproduce
Dont think I can reproduce with cURL.
But I have an event listener that listens for the guild scheduled event update.
When a non-reoccurring event ends it returns COMPLETED as expected....
Description
Slash command options do not appear.
Steps to Reproduce
Preview of command JSON:
data: new Discord.SlashCommandBuilder() .setName('new_game') .addNumberOption(option => option.setName('num_teams') .setDescription('Number of teams in the game') .setRequired(true) ) .setDescription('Create a new game in this channel'), async execute(interaction) { console.log('Creating new game') }
Expected Behavior
Options for slash co...
This repository is not library support
Have investigated a little more. I believe this issue is due to "phantom" commands remaining on the Discord server's channel data, but not being recognised by the API.
<img width="531" alt="2024-05-22_14-03-19" src="https://github.com/discord/discord-api-docs/assets/16234792/745a3d70-22c4-4de5-9a51-966bfba21ea4">
I just removed and re-added the bot to a server. Here are 4 commands which were never added in code. When I try to look up or delete them using their command ID, the API return...
the client cache is outdated, please restart app or invoke any command
the client cache is outdated, please restart app or invoke any command
Tried both several times. I also tried adding the same app to a new server. All replicated the same issue.
Now creating a new app with the same code to see if this replicates.
Did not replicate on a new app instance. Closing, will re-open if re-occurs.
Hi @Thorvarium, could you verify you have the permissions "Voice Channel Connect" and "Use Application Commands" enabled as well?
You'll need the following permissions to launch a text activity: USE_EMBEDDED_ACTIVITIES USE_APPLICATION_COMMANDS and SEND_MESSAGE. Can you confirm you have all those permissions?
This is a bug either due to the UI that can launch activities appearing OR you have the proper permissions and its just not working.
Hi @gabemeola , it is a text channel... the channel has no permission for Voice Channel Connect. But the role does have it in the main permissions screenm use app commands as well.
@jkcailteux If "USE_EMBEDDED_ACTIVITIES" is called "Use Activities" in the UI yeah I do have all of them. I Just gave myself every single permission in the text channel and it still doesn't start the activity.
Here in the attached video you can see that the Administrator role (that is not a real administrator...
We've identified the bug, working on a fix. Thanks for flagging
Description
Title sums it up. The documentation linked below currently says that all arguments to this endpoint are required when the API seems to accept partial requests similar to other Modify endpoints. https://github.com/discord/discord-api-docs/blob/3b0b05eea18c3c8f4561dc0b9d3bbb84fa5082bc/docs/resources/Guild.md?plain=1#L1333-L1340
This also brings into question why it is using PUT, instead of PATCH, but I may be missing something there.
Steps to Reproduce
For examp...
Description
When the Add Guild Member endpoint is called against a user that is a member of the maximum number of permitted servers (200), and the user is already a guild member of the server theyโre attempting to join, a 400 error response is thrown instead of the expected 204 response (No Content - already a member).
Steps to Reproduce
- Be a member of 200 discord servers, including a server you own.
- Using the API, attempt to add your user as a guild member to the server you o...
Description
We're using Game SDK v.3.2.1 with Unity (only for rich presence functionality) - when the main Discord application is running but there is no user logged in the game crashes when trying to update activity: DiscordInstance.GetActivityManager().UpdateActivity()
We also didn't find a way to reliably check if the user is logged in before calling the UpdateAcitivity(), attempts via userManager methods also resulted in a crash and userManager.OnCurrentUserUpdate += didn't...
Bumping this. This was resolved initially but has now regressed with the new "app menu" feature.
Description
I'm trying to send a poll in an interaction response with an ephemeral message which works, but voting on this poll causes an error.
The reason I'm doing this is because I am only trying to get an answer from the person that initiated the interaction.
Steps to Reproduce
- Respond to an interaction with a poll
- Vote on the poll
Expected Behavior
Your vote is recorded
Current Behavior
Error: Unknown Message
Screenshots/Videos
Client and Syst...
Description
You need to change from "Weekly" to "Daily" twice for the graphs to update to daily
Steps to Reproduce
Go to Developer Portal
Click on Server Insights
Click on your server
Change from Weekly (default) to Daily)
Graphs are not showing as daily
Expected Behavior
I expect to show as daily
Current Behavior
You need to change to daily twice for it to update the graphs
Screenshots/Videos
No response
Client and System Information
N/A
guild: 10761...
Update: it is working now! Thanks
(Same issue is present on the date pickers)
Or better, in line with Discord conventions, let bans have their snowflake IDs (the timestamp based upon the creation of the ban), which would also allow "fetch ban by ID".
which is in fact how bans used to be presented in the API, with IDs
Description
Recently, the Audit Log event types for Guild Onboarding were documented in #6041. This also includes the ONBOARDING_PROMPT_DELETE Audit Log type.
However, it is seemingly never logged. It isn't returned in the /guilds/:id/audit-logs API response (and therefore not displayed in the client), nor emitted when listening to the Guild Audit Log Entry Create gateway event.
Steps to R...
Description
When going to the Canary/PTB developer portals, you get an error message.
Steps to Reproduce
- Navigate to https://canary.discord.com/developers/ or https://ptb.discord.com/developers/
- Log in to your account
- Observe you get an error message
Expected Behavior
You can successfully log in to the Developer Portal on Canary and PTB
Current Behavior
You get an error message that says "Unexpected Application Error!clocalStorage is not defined"
Screenshot...
Anybody know if there has been any temporary remedy to this bug? Not having a method to control the visibility of these slash commands can become problematic when there are many, it becomes difficult for users to sort through them. To re-iterate, it isn't about controlling the right to execute a slash command but rather simply preventing users from another channel to see a specific slash command within a guild.
There is no bug reported here. In Server Settings > Integrations, you can select allowed channels for any application or command, and the commands will not be visible in other channels.
Again, as far as I can tell this has nothing to do with the visibility.
If you take time to read the Integrations Panel in Server Settings: "Restrict usage of this application's commands to roles, users, and channels.
Usage is one thing I've already got covered, visibility is another...
If the command is not usable then it is not visible. Discord does not show commands to users who do not have permission to use then.
I'm dumbfounded, you clearly haven't read what the OP was asking for.
I have read it. This GitHub issue was made in 2020, when slash commands were new, long before the current command permsision system existed. Back then it was not possible to control the roles/channels that can see each slash command, but now it is.
The scenarios in the OP of over three years ago are already addressed. I'm not sure what you're after here, if I set a command to be only usable by a certain role, only a user with that role (or server admin perms) can see and use it.
The control bot developers get is basically limited to whether a command is default everyone or default admin only. The latter being useful for administrative commands, allowing the server owner to set permissions without having to worry about a brief window ...
This issue was resolved in a way that I and many others were happy with.
If you are looking for additional functionality, please open a new issue and provide constructive feedback.
Description
A role select menu does not include the guild default role. A slash command role component will show the guild default role.
Steps to Reproduce
create a role select menu and view the roles, @everyone will not display
Expected Behavior
the default role should be selectable
Current Behavior
default role is not included
Screenshots/Videos
No response
Client and System Information
discordpy
In the event that somebody in the future falls in the same scenario, I think it's impossible or at least very difficult to have the commands hidden from specific channels for you if you're the server owner, all along the solution was working just not for my account, sorry for wasting your time @advaith1
In the event that somebody in the future falls in the same scenario, I think it's impossible or at least very difficult to have the commands hidden from specific channels for you if you're the server owner, all along the solution was working just not for my account, sorry for wasting your time @advaith1
Same applies to anyone with admin perms unfortunately. Under the roles portion of of the server settings you can "view server as role" and I use that to verify visibility quite often.
Note for future me - this is currently flagged as private in our Open API spec, and I need to go figure out why.
I'm having this issue after migrating my bot to slash commands. The emoji all display properly in DMs, where I was testing the command, but even with every permission checked on the bot and the @everyone role for the channel, the external emoji do not display in other servers. They are instead shown as :emojiname: in plain text.
Description
When using select menus you got 100 chars to provide a description to an option, however in the client only the first 60 chars are shown.
Steps to Reproduce
Create a Selectmenu and add an option with a description longer than 60 chars
Expected Behavior
The client should show the whole description
Current Behavior
The description is getting cut after 60 chars
Screenshots/Videos
 MDX components (#6899) - shaydewael
3d29066 Update CONTRIBUTING.md - shaydewael
Fixed some typos in the original text and referred to components as plural to be consistent with the previous last one ("cards") plus i think it looks nicer
Buttons are simply... clickable buttons. They take `href` and `color` as arguments, but currently we only use `"brand"` as a value for `color`.
Collapsibles allow you to show/hide content on a page that may be secondary to the page's primary content. They have four fields that can be set: `title`, `description`, `icon`, and an `open` flag (which makes the collapsible element open by default).
Hey.
I kinda get the use-case, but just like reactions and some other stuff, we're not going to support polls in ephemeral messages. We'll probably eventually make the endpoint error out if you're trying to include a poll in the message.
If you need to prompt like this perhaps make a few buttons or something instead for an alternative UX.
Or better, in line with Discord conventions, let bans have their snowflake IDs (the timestamp based upon the creation of the ban), which would also allow "fetch ban by ID".
Thought of this when making the discussion... But imo it would just lead to confusion and, if they moved away from it as you say (which does seem to ring a bell), they probably had their reasons
be2df07 disallows customizable label for premium buttons - goatslacker
this may confuse developers that might think that PING/PONG/APPLICATION_COMMAND_AUTOCOMPLETE/APPLICATION_COMMAND_AUTOCOMPLETE_RESULT are deprecated.
Made a small change that hopefully makes it more clear. be2df07187315a440cf482a7ce980b6e60f2a0df
I can commit this but we need to change an -> a.
Why are custom labels not supported for premium buttons? That's unfortunate for bots that want to provide multiple options in the response
Why are custom labels not supported for premium buttons? That's unfortunate for bots that want to provide multiple options in the response
They can still have multiple buttons in a response. But we want clarity in each of the premium buttons and requiring sku_name & price is the best path forward right now. It's possible we can open this up in the future to not require sku name & price.
This behavior is intentional as the everyone role doesn't actually exist, so it's not available in role selects or role options in commands. If you'd like to have everyone as an option, there is the mentionable select/option.
it is available in the role select for slash commands
well you can set it with default_values, so thats feels weirder to me.
Dear sir, discord is fantastic but please I earnestly request you to grant us the access to add more than 10 members in discord group. Because we all have got friends and all of them don't fit in the group. We need the limit at least 15/20 members. Please please grant us this option. Discord would be the best. Please sir.
Just make a server and invite your friends into that? ๐ค
Just make a server and invite your friends into that? ๐ค
But server and group are a lil bit different y know.., As they've granted us the group, they might also extend the limit. Do you get what I mean..
- Premium buttons **must** have a `sku_id`, and cannot have a `custom_id` or a `label`.
I modified my code to repeatedly resend the failed deferred request with a 1000ms delay, and I just had 4 404 Unknown Webhook failures logged followed by a success (with no other activity in that time period, nor any other activity that day).
So at least in my case, the webhook and interaction are definitely (eventually) valid; it's not a matter of a URL being incorrect or a timeout (or a reasonable minimum time between requests being required to prevent a race condition, which clients c...
we can do fancy special theme in future, but for now just adding a background lol
Oh hey, this launched today
Oh hey, this launched today
I would really enjoy having the ability because I'm trying to import a server with hundreds of thousands of messages and soooo many threads because we used them extensively.
I am attempting to develop a user app which is able to do an action that I wish only a subset of users to be able to do. It would be nice if it were possible to send the user through OAuth2 and for the application to need to call a specific endpoint before the user app is added.
5c88aa2 Update change log for member profile doc (#6905) - hemu
2d57c1f add block member interaction action - hemu
748d67e Add block member interaction action to change l... - hemu
I'm not entirely sure why this change is necessary - both say the same thing, and I think the prior version says it a bit more clearly.
We don't really have something called a "gateway session" but I understand the intention here.
To elaborate on the terminology, a gateway connection refers to a connection to our websocket gateway at gateway.discord.gg, and a gateway connection then spawns a session. The session outlives the gateway connection, since you can re-connect to the gateway when you're disconnected, and RESUME to re-establish the gateway socket's connection to a given session.
The word "evenly" is not necessarily true, since the volume of events dispatched to a given session is entirely dependent on the guilds on that shard.
E.g. in a pathological case, if your bot is in 2 guilds, and you have one of the guilds has 1 member, and the other 500,000 members, you definitely won't see an "even" distribution of events.
I would remove the word "evenly" here as well.
any information when official merge? waiting for over half a year now
Do you mean whether shard_id is first or last, or whether it's an assignment = or comparison ==?
In the first case, it is to less ambiguously show that it is, in fact, intended to be a comparison and not an assignment.
The whole point of this PR is to rewrite the documentation in terms of which of the guilds that a bot is in to which a gateway "session" with a certain shard_array will be subscribed to events, as opposed to deciding which "shard_id a certain event will be sent ...
So it should just be "session" instead of "Gateway session"?
Good point. "As an example, if you wanted to split guilds equally between three shards" would probably be better wording along with a remark that this of course won't necessarily split the events evenly if some guilds produce more events than others.
I'll include this in a batch once all your comments have been resolved.
I think that a = b + c is much more clear than b + c == a
Yeah that would be fine.
There is no "split equally" either - for example, if you are running 3 shards, and you leave all guilds on shard 0, then your guilds are not and will no longer be split equally.
The entire basis of this system is that it takes a probabilistic approach to distributing guilds between shards, based on the millisecond that the guild was created in our system. With enough guilds and shards, it should balance out, but there definitely is no guarantee of an even or equal split one way or another.
Yes, I understand that very well. There is an implicit assumption in that sentence that the bot is part of many guilds (as it would most likely be when sharding becomes necessary). I could definitely make that assumption explicit.
With this PR, the formula is written in the context of - when a shard is connecting to the gateway - iterating through all guilds that a bot is part of and deciding whether the shard should receive events from that guild based on the guilds guild_id and the shard array with shard_id and num_shards that the shard provided.
Sure, if you see it as a mathematical equation, a single = would suffice, but this is documentation that programmers will be reading to understand how sharding be...
How is this not an assignment? The original wording is much clearer.
Although I appreciate the discussion, I would still prefer the original form to remain.
Is session more accurate than connection here? IMO connections are more intuitive than sessions, so rewriting this section in terms of sessions makes it harder to understand.
Sure, we can keep it as an assignment. It still has to be in the context of a single shard though, as each session has its own (potentially different) value of num_shards. Then we can just write with words afterwards that "The session will receive events from every guild that, using the formula above, evaluates to the sessions shard_id using the corresponding num_shards".
I don't see how adding this level of indirection makes it any clearer though?
I believe that session is more accurate yes.
As Jake wrote, a session can be RESUMED in a new connection to the gateway. And, as per the documentation, a connection will be sent all missed events from a session once it resumes it.
Thus, events being sent to a session which "forwards" them over the active connection or stores them if a connection is not currently active is a more accurate way of thinking of it (unless I completel...
Description
Message Buttons with Link Style become disabled when the Thread is Locked.
I understand that this is desired with non-link Buttons, because the App is reactive to those.
But on Link-Buttons this doesn't really make sense, as the App cannot update the Message when Link-Buttons are pressed.
Steps to Reproduce
- Create a Thread (Any Type)
- Make a Bot send a Message that contains Buttons with Link-Style
- Lock the Thread
Expected Behavior
While normal Compon...
Description
The automatic validation prevents sending a slash command including an attachment option while in splitscreen mode, stating 'Not a valid value'.
Steps to Reproduce
- Send a message in any channel the bot has access to and that allows threads.
- Create a thread from that message.
- Enter splitscreen mode by clicking the '[x] messages >' link that has appeared beneath the message.
- Attempt to use a slash command with an attachment option.
Expected Behavior
S...
My solution: Activities. Why don't you let the dev stream an html document or an website, the rest can be handled by the devs
My solution: Activities. Why don't you let the dev stream an html document or an website, the rest can be handled by the devs
you can make activities
Description
When visiting your Application's Bot Tab, the Read More section of every Privileged Gateway Intent redirects to an invalid URL
Steps to Reproduce
- Open the Developer Portal
- Select your application
- Head to the bot tab
- Try and select any of the three privileged intents' Read More hyperlinks
Expected Behavior
It would redirect to the pri...
This is not scrapping, but passive sniffing. You can't stop that.
On the other hand, some information may be hidden.
- List of channels not visible to the member.
- List of members who do not share a salon with the current member (or via search).
It's worth noting that Discord has already made some changes to reduce the amount of unnecessary information sent to the client that can be used for sniffing (although the main aim was probably to reduce the bandwidth used).
Unfortunatel...
When are you gonna fix this?? We don't want ppl to be able to spam adult links in our welcome channel like they usually do. but we want them to be able to use a command. like wtf please fix asap.
Should have a fix out for this soon
Description
In DM's when you run an interaction that has an embed with an image property with a gif url, then replace that gif url with another url to another gif it breaks the embed and doesn't show the gif at all example: https://pics.firegamer3.net/wzPJjJnPH.gif
Steps to Reproduce
in a Bot's dm run a slash command that responds with the following embed
{
"description": "\`\`\`\n\"mario\"\`\`\`",
"image": {
"url": "https://i.hep.gg/a94jGebEL.gif"
...
Judging by the video, it might be related to #6694
Judging by the video, it might be related to #6694
I just looked over it and yea seems pretty similar, and even to that what I am seeing is close to the exact issue that you posted about in there, but Iโd have to look at my client events to be sure.
anyways if it beat helps that I contribute to that thread then I can close this, but it seems like this is a more focused area (in DMโs only) outside of DMโs I am getting expected behavior
This ticket is going to be a bit unusual.
After recent rug pulls of Slack and Guilded, users and developers very well observe that centralised platforms are prone to rug pulls and bad practices. Hence I propose that Discord should reach application developers and ask their opinion for a standardised server-server API, to be able to interoperate across first party and third party (yes, there are four such implementations and two of them are open source) servers.
Yeah, a backtracking regex is no longer a regex in terms of computer science
It's just a grammar expression that resembles a regex
Sometimes a pausal of joins is not enough. You need to temporarily stop all the activity on the guild. A new guild/clan flag, FROZEN, could be added to solve the issue. Should require ADMINISTRATOR to add, and ADMINISTRATOR if not added by the owner, guild ownership if added by the owner.
| USE_EXTERNAL_APPS | `0x0004000000000000` `(1 << 50)` | Allows using user installed apps not installed to the server. When disabled, users will still be allowed to use their apps but the responses will be ephemeral. | T, V, S |
hex
e5cd463 Document AutoMod incident action message types ... - advaith1
0b19644 Update docs/topics/Permissions.md - sklein12
Perhaps consider renaming this permission to DISPLAY_EXTERNAL_APPS or something similar, or make that clear in the final UI?
| USE_EXTERNAL_APPS | `0x0004000000000000` `(1 << 50)` | Allows the use of user-installed apps that are not already installed to the server. When disabled, users will still be allowed to use their apps, but the responses will be forced ephemeral. | T, V, S |
Description
When adding an option to an onboarding prompt, the resulting id in changes may be an integer in the audit logs. The integer is a timestamp of when the action took place, rather than the id of the option.
Steps to Reproduce
Through the Discord client:
- Open onboarding settings in a server
- Open questions
- Add a question
- Enter a question (contents do no matter)
- Add an answer (contents do not matter)
- Save
- Add an answer (contents do not matter...
Perhaps consider renaming this permission to DISPLAY_EXTERNAL_APPS or something similar, or make that clear in the final UI? Given that users can still of course use external apps. it seems that the permission that fully disables user apps is USE_APPLICATION_COMMANDS.
The behavior is the same with both permissions. If either USE_APPLICATION_COMMANDS or USE_EXTERNAL_APPS is disabled the app response will be forced ephemeral.
132c478 Add docs for activity instance validation - matthova
The behavior is not the same with both permissions. Go test it. USE_APPLICATION_COMMANDS disabling does disable use of user app interactions (both slash and context menu) in servers.
Description
Data not displayed at all anymore
Steps to Reproduce
Go to any server in the developer portal and check server insights
Audience data is not being displayed
Expected Behavior
Audience data should display graphs
Current Behavior
Graphs are missing
Screenshots/Videos
Client and System Information
google chrome
Description
Today, I was trying to use slash commands of one of my bot as usually. Same channel, bot and guild permissions as always
But, for some reason, none of the slash commands that I commonly use is been showed on thread channels, even with the proper permissions set on the parent channel
I can only use the commands again if I have "Send Messages" permission on the thread parent channel. Until yesterday, I was using them regularly without any problems
Steps to Reproduce
...
I think that simply keeping it as is for the time being is fine. I feel the formula is clear enough and one can grok the relationship.
I've always thought the larger meaning here is: "given a guild, and the number of shards I'm running, which shard does a given guild land on". This answers a practical question, for example if you want to locate the shard that is handling a given guild, so you can look up data from that shard's process. Internally, we do such lookups (albeit with hash ring...
The behavior is not the same with both permissions. Go test it. USE_APPLICATION_COMMANDS disabling does disable use of user app interactions (both slash and context menu) in servers.
This is not the intended behavior and is being changed.
TODO: this has changed to ```json
"guild": { "id": 1234 }
I can also confirm that slash commands do not work inside a forum channel that has the Create Posts permission disabled.
Previously, this was not an issue and slash commands could be used.
It also happen for one of my server :
@everyone perms :
- Send Message : YES
- Send message in thread : YES
- Use Application Commands : YES
Per forum channel :
- Create Posts : NO
I also tested to force the @everyone permission on the command and on all channels.
And for me the users CANNOT use any commands in any channels of the servers (including normal text channels)
It also effect context menu commands since it's also an interaction.
maybe something like this that focuses on the responses? because right now the first sentence almost feels misleading in context.
| USE_EXTERNAL_APPS | `0x0004000000000000` `(1 << 50)` | Allows user-installed apps not installed to the server to send public responses. When disabled, users will still be allowed to use their apps but the responses will be ephemeral. | T, V, S |
Description
It appears there's a large typo in the new developer terms, specifically here
- (i) support purchase of such features or capabilities through Discordโs Premium Apps products; and,
- (ii) offer such features or capabilities at prices on Discord that are no higher than the prices at which they are offered through other payment options.
I assume thi...
@jkcailteux Why was this closed? Surely you aren't saying that these changes were intentional? I refuse to believe my favourite development platform would be this out of touch... Very worrying!
While I don't necessarily disagree with your points, sarcastically framing this as a "typo" or "bug" is not helpful to the discussion.
This is a place to report bugs.
A fix for the issue with not being able to see commands in threads has merged and should be rolling out to canary shortly.
@ibaraki-douji I'm unable to reproduce the issue you're having with users not seeing commands anywhere. If you're still having issues with that in a couple hours, double check that the users have both the SEND_MESSAGES and USE_APPLICATION_COMMANDS permissions in the channel (and double check that you don't have the apps/commands disallowed for those users in the integ...
Hello!
I'm implementing slash commands, and I would like to know how to build AND/OR PermissionFlagsBits conjunctions.
I think that doing this:
return Array.from(permissions.defaultMemberPermissions.AND).reduce(
(mergedBitFlags, currentBitFlagKey) => mergedBitFlags | PermissionFlagsBits[currentBitFlagKey],
0n
);
Produces a AND conjunction of all the PermissionFlagsBits.
This is strange because I use the | binary operator, which means "OR"?
So, ma...
Hi @Rodentman87 ,
thx for the patch it works now (only for Canary client for now, hope it will be released soon on the normal client)
c0ad171 fix markdown formatting issues - JustinBeckwith
8f3eb50 missed a table format - JustinBeckwith
Description
Both the documentation and the API specification state that one should be able to utilise name_localizations to respond with, well, name localisations.
This was originally brought up via #4721. It's been a long time with no resolution and no visible active issue, so I've decided to make one.
Steps to Reproduce
- Respond to an autocomplete interaction with
name_localizationspopulated
Expected Behavior
Responding to an autocomplete interaction should respec...
- Transfering
- permissiable
- authenitcation
Please remove the trailing space!
Description
There is a typo on https://discord.com/developers/docs/monetization/one-time-purchases#using-application-test-mode .
It should be called "API" not "IAP".
Steps to Reproduce
Open https://discord.com/developers/docs/monetization/one-time-purchases#using-application-test-mode and there is written "IAP".
Expected Behavior
It should be called "API"
Current Behavior
It's displayed as "IAP".
Screenshots/Videos
 - shaydewael
This is a must-have feature.
This is a must-have feature. If video is supported, audio really should be too.
7d1116f add icons to overview cards (#6920) - JustinBeckwith
Using JDA, with commands that are otherwise instants (a /ping command), I get this error.
The weird part is that it's really random, but once it happens, it just wont go away. The command itself or my code does not seems to be a problem either since when it works, the interaction respond instantly. The device on which the code run is good, and the network is fast.
I was not able to identify a pattern, unfortunately, hope it get fixed soon
still doesnt work for me! im gonna try clear browser cache and update
We expect that autocomplete results should necessarily be locale-aware in order to provide meaningful results and therefore apps should be preferring to return results in the interaction locale anyway. Therefore we'll keep tracking this as a wishlist fix, but generally you should be able to use the workaround to cover this functionality. Is there a specific use-case that you're trying to solve for here?
I do not have a specific use case for wanting this behaviour other than for consistency. I just wanted to point out that the API specification and the documentation state these fields should work when they do not, hence the bug report.
Although not common, it does cause the odd one here and there to ask why their responses are not localised.
I was surprised by #4721 classifying this as a bug - IMO this should just be considered the intended behavior and documentation should reflect that. If you already know what the locale is, then returning data in multiple locales just results in larger payloads for no reason.
- Add a PowerShell command and details on how to use it
still doesnt work for me! im gonna try clear browser cache and update
hmm, weird
i just checked, i can log in.
i removed cache and tried to login into developer page but i cant, and also when i login into normal discord it works but if i close the tab and reopen discord on another tab it logs me out
I really need this. And i don't understand why this is not changed yet. It just another condition that checks if activity has both start and end timestamps
d247d1d add some button design guidelines - goatslacker
I see a potential solution here. Why don't we ask the user if they want to allow their bio to be scraped. If they don't allow it, we just hide their bio from all server members. It solves the moderation issue.
I see a potential solution here. Why don't we ask the user if they want to allow their bio to be scraped. If they don't allow it, we just hide their bio from all server members.
This seems like extra work. Maybe an update to ToS or Privacy Policy saying that adding a bio gives consent to scraping? Or maybe a label under the edit bio text box?
Consistency: All the other list items end with a dot.
- 34 characters max with icon or emoji.
- 38 characters max without icon or emoji.
RIP the gradient :(
| Premium | 6 | blurple | `sku_id` |
Update the documentation of message types to reflect the changes as per https://github.com/discord/discord-api-docs/issues/6551#issuecomment-1894758069.
You can use attachment options in slash commands
can you attach more than one tho? i couldnt find anything about dat
Description
.setLocked on a thread that is currently "Archived" or "Closed" returns an error of "DiscordAPIError[50083]: Thread is archived".
From my understanding of the documentation, .setArchived simply moves the thread into the "Older Posts" section but still allows it to be re-opened when typed in; whereas .setLocked prevents the thread from being re-opened unless they have the "Manage Threads" permission.
It seems odd that I can lock a post that has been archived manually mys...
Description
The checkbox to "Agree to Terms of Service" on the "Create an Application" popup is completely hidden. I was able to find it, and searching through previous tickets indicates this is likely an isolated or specific compatibility issue.
Steps to Reproduce
At discord.com/developers/applications , Click New Application
Expected Behavior
You are presented with a popup screen with a form to submit, which reads "By clicking Create, you agree...". Presumably the checkbox...
Super weird. This "works on my machine" with OSX and Chrome. Will do some checking of other browsers to see what's up.
Ok so I installed brave, and I'm still seeing this checkbox outline:
<img width="510" alt="image" src="https://github.com/discord/discord-api-docs/assets/534619/85add01a-0b0e-4167-8c4d-044c6a7a7a85">
Something with the fonts in your screenshot look .... wrong. Is it possible you have a non-standard set of scripts for overriding fonts, accessibility settings ... anything you can think that may cause this?
Also curious - does it look correct in light mode? Click the little moon in th...
With the removal of the verification form (replaced with an automated verification flow) this issue is no longer relevant and can be closed.
oh, yea good call, light mode is not hidden.
This also reminded me the browser is set to force dark mode. And that was the cause of the missing checkbox:
Looks lik...
f092440 Add USE_EXTERNAL_APPS permission (#6913) - sklein12
Going to close this as working as intended. You're not allowed to edit an archived thread. If you want to edit it, you need to un-archive it first. Appreciate the input, I don't see us changing this behavior anytime soon.
@hackermondev Bots get 401Unauthorized, how did you managed to make it work?
You need to send the parameters in the body of the call.
@hackermondev I don't think this endpoint provide the source_invite_code data now.
( (It had worked a week ago but even today it is not providing the source code) can you please confirm if this is the case form your side?
@refat2090 Working for me. Tested on a very small server tho. FWIW you can not get codes if member is bot or creator of server.
if possible can you please provide the URL that you are using and a
screenshot if possible?
On Tue, Jun 11, 2024, 1:39 PM Bruno Alvalat @.***>
wrote:
@refat2090 https://github.com/refat2090 Working for me. Tested on a
very small server tho. FWIW you can not get codes if member is bot or
creator of server.โ
Reply to this email directly, view it on GitHub
https://github.com/discord/discord-api-docs/discussions/3210#discussioncomment-9735519,
or unsubscr...
@Haptein , can you please provide a screenshot of the API call and the url that you are using?
Description
I'm trying to listen to any typing event in my server channel I used the Gateway API, the TYPING_START under the GUILD_MESSAGE_TYPING , but it never receive any event, it works with the DIRECT_MESSAGE_TYPING.
Steps to Reproduce
.
Expected Behavior
.
Current Behavior
.
Screenshots/Videos
No response
Client and System Information
Node.js
@marcustyphoon I still think there are probably legitimate explanations for the scenarios where this occurs, but I of course won't claim that for sure since everyone's situation is different. Since I had a 100% reliable way to reproduce the problem, I thought it would be useful to provide my explanation and more or less challenge those here, since so much of the info here is anecdotal and difficult to act on from discord's perspective. It does sound like your scenario is simple and somewhat c...
Just checked it still forces type to PLAYING if rpc.transports is not POST_MESSAGE. Imo it's absolute nonsense...
Is the time bar avail for all listening type activities yet?
Nope it just ignores any timestamps if activity type is Listening
HEXASECTOR
1.time ever puplished thing what ewerybody gonna know but now 6/12/24 nobodoy No even heard that before,,ever...
Description
poll is not a parameter of interaction.followup.send() but it IS a parameter of interaction.response.send_message().
I would like to do a response.defer() and then create the poll after querying a DB.
Steps to Reproduce
interaction.followup.send(poll=poll) always fails
Expected Behavior
interaction.response.defer()
interaction.followup.send(poll=poll)
should be the same as
interaction.response.send_message(poll=poll)
Current Behavio...
this looks like a discord.py issue, not a Discord issue. discord.py is a third party library, please file the issue in their repo instead.
I don't see an issue here, I'm able to edit a message with a new GIF and it works as expected:
const embed = new EmbedBuilder()
.setTitle("Favorite Images")
.setImage(
"https://compote.slate.com/images/697b023b-64a5-49a0-8059-27b963453fb1.gif?crop=780%2C520%2Cx0%2Cy0&width=1280"
);
await interaction.reply({
content: withContent ? "Embed!" : undefined,
embeds: [embed],
});
await sleep(5000);
...
@sylveon did you implemented it on apple m cpus? when i want to do that i get 2 errors:
- โdiscord_game_sdk.dylibโ canโt be opened because Apple cannot check it for malicious software.
- Multiple plugins with the same name 'discord_game_sdk' (found at 'Assets/Plugins/aarch64/discord_game_sdk.bundle' and 'Assets/Plugins/aarch64/discord_game_sdk.dylib'). That means one or more plugins are set to be compatible with Editor. Only one plugin at the time can be used by Editor.
I'm not a Discord employee. It seems you are having issues with Unreal Engine.
Is Unity, i also know that you are not an employee, but i am asking if you managed to run the SDK on Apple Silicone
I do not have Apple Silicon hardware. I am interested in Windows ARM64 support, and filed this request before Apple Silicon even existed.
Description
Long messages with lots of underlined and bold text is truncated in the UI, but not truncated when fetching using the API
Steps to Reproduce
Use this text as the description of an embed message.
long-description.txt
See that the message is truncated.
Fetch the message from the API and ...
The UI stops rendering markdown after the 100th element (probably for performance reasons).
This affects all markdown, mentions and emojis.
as noted, there is a maximum number of markdown elements rendered. this is expected.
2461165 Update docs/interactions/Message_Components.md - goatslacker
7e243af Update docs/interactions/Message_Components.md - goatslacker
Is there any actual reason why this hasn't been added? From an infrastructure perspective, I can't really imagine why not.
Removes warn boxes that used to point out changes to the behaviour of locked threads that took effect more than a year ago...
Alternatively, these could be updated to say March 6 2023, but I think removing them altogether and putting the relevant info (taken from the changelog entry) directly on the threads page instead is a more straightforward approach...
I'm not able to reproduce, I don't see an issue with typing events or the gateway. Closing this issue.
770e4c3 Update docs/Change_Log.md - colinloretz
a0dbb41 Update docs/Change_Log.md - colinloretz
769b87b Update docs/interactions/Receiving_and_Respondi... - colinloretz
bfbc69b Update docs/interactions/Message_Components.md - colinloretz
927251f New button styles image - goatslacker
43b3e97 Support Onboarding and Server Guide in Audit Lo... - Puncher1
57673f3 polls and message content intent (#6869) - valdotle
ac361cf Bump year in LICENSE-CODE (#6594) - Misha-133
3b0b05e Update the docs for speaking updates (#5576) - MinnDevelopment
549e656 [gateway] Clarify Reconnect opcode, Document zs... - ypisetsky
if the image is being updated, might as well update the other buttons in it too - the green and maybe the red are outdated colors, and the grays are inconsistent
if the image is being updated, might as well update the other buttons in it too - the green and maybe the red are outdated colors, and the grays are inconsistent
Agree, I'll get those other colors updated. Thanks Advaith!
The next section in this page also needs updates to reflect changes to the app and dev portal, but this is a quick fix
There are numerous enums in the API documentation, which usually only have the type name and type number (or bit position) in a large table.
To properly make use of these types, we need to know what the purpose and context is.
Enums like Message Types have a lot of different values, with some being very unclear.
For instance, what are the differences between all the boost types or what is REPLY. P...
For instance, what are the differences between all the boost types or what is
REPLY. Please add more details to the documentation, as a library developer I have to go out of my way to find them in the wild to know what the purpose is. Another recent addition,PURCHASE_NOTIFICATION, is one I don't know the purpose or context of.
that message type exists in openapi spec:
[message.purchase_notification](https://github.com/discord/discord-api-spec/blob/2ea9cb243da96de0a42684adb8aabbf2...
in the meantime you can check out our unofficial user docs, for example here's better documentation for all the message types https://docs.discord.sex/resources/message#message-type
Description
source_invite_code is not documented under the proper GET Guild Member Search docs:
https://discord.com/developers/docs/resources/guild#search-guild-members
Steps to Reproduce
- Go to https://discord.com/developers/docs/resources/guild#search-guild-members
- Try to find
source_invite_code
Expected Behavior
I expect it to be there and fully documented, as it's been fully released for awhile.
Current Behavior
The type documented.
Screens...
this field exists only in POST /guilds/{guild.id}/members-search (undocumented endpoint)
9e0432f Bump braces from 3.0.2 to 3.0.3 - dependabot[bot]
Bumps braces from 3.0.2 to 3.0.3.
Commits
74b2db2 3.0.3
88f1429 update eslint. lint, fix unit tests.
415d660 Snyk js braces 6838727 (#40)
190510f fix tests, skip 1 test in test/braces.expand
716eb9f readme bump
a5851e5 Merge pull request #37 from coderaiser/fix/vulnerability
2092bd1 feature: braces: add maxSymbols (https://github.com/micromatch/braces/issues/...
9f5b4cf fix: vulnerability (https://security.snyk.io/vuln/SNYK-JS-BRACES-6838727)
98414f9 ...
Description
When using an interaction, the Guild object does not contain the preferred_locale property, but instead has locale.
Originally reported at https://github.com/discord-jda/JDA/pull/2633#issuecomment-2172787976
Steps to Reproduce
- Run a slash command
- Look at the guild object provided in the interaction
- See there is no
preferred_locale, butlocaleinstead
Expected B...
113dccd Bump braces from 3.0.2 to 3.0.3 (#6937) - dependabot[bot]
1b4b66c Fix bitwise & operator in sku flags (#6934) - advaith1
b282626 Updated changelog. Added deep link docs - colinloretz
179dfc2 fix backlink - colinloretz
[discord-api-docs] Branch joshperez/premium-interactions was force-pushed to `0b7c265`
Hello Team,
I am creating an application that will allow a person to showcase their complete web3 professional profile. In this I have integrated with multiple Dapps.
Now, I am trying to connect with Discord for the below functionality:
- User should be able to successfully connect their own Discord account with my react application.
- Once the user Authorise, and the my application receive Access Token with scope such as 'guilds.members.read', I should be able to complete below 3 st...
Right now, the only way to determine who banned a user from Guild Member Ban events is the audit log. The audit log, however, tends to be rather unreliable in reality leading to bots having to work around the problem with limitations or accept the unreliability.
As such, would it be possible for the Guild Member Ban gateway event to get one more field containing the user id of the moderator who banned the user?
since this is the point of the audit log gateway event, what reliability issues does that event have for your use case?
We have deployed a fix to prevent the __struct__ key from being leaked for Guilds.Models.ScheduledEventException.
Thanks so much for bringing this to our attention!
@advaith1 The audit log gateway event is not reliable in larger servers and is also not reliable in the case of larger raids/nukes/spam (and in general, can be much slower than the ban event). The Guild Member Ban event however is reliable under these cases. This limitation as such makes it hard to accurately response to these larger raids/nukes/spam without a lot of bruteforcing etc. (or just giving up and accepting the lack of reliability which isn't really great)