#github-notifications

1 messages · Page 4 of 1

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

+1 to the idea of having specific choices to select from. I'm planning to build an integration for people who have subscribed to me on various platforms, and I want to be able to link specific roles to specific tiers. I feel like integrations similar to this- where roles are based on a limited set of strings rather than something like a random number- would be best handled with some kind of string choices instead of the current workarounds which would be either:

  • create a boolean metadata fo...
chilly siloBOT
#

Description

Hey! I've been working on a command that runs a webhook, however when I run the PATCH request to set the channel ID, it always ends up with a 404.

Steps to Reproduce

PATCH webhook request, and have the channel ID to the specific channel (I've checked and it's the correct ID) and it returns 404

Expected Behavior

Sets the webhook channel to the ID I inserted

Current Behavior

Gives 404 not found (no other info)

Screenshots/Videos

No response

Client...

chilly siloBOT
chilly siloBOT
#

+1, I am working on a bot that dumps large amounts of messages from my server's channels and I can't complete the bot because it needs to be able to read commands to fulfill the purpose I intended it for. May I suggest adding a new privileged intent, perhaps INTERACTION_DATA, which would allow a bot to read from this endpoint?

For clarity, the bot I have made uses an all messages sent in the server to train an RNN, and my main goal was to make the network generate bot commands (for comed...

chilly siloBOT
#

+1, I am working on a bot that dumps large amounts of messages from my server's channels and I can't complete the bot because it needs to be able to read commands to fulfill the purpose I intended it for. May I suggest adding a new privileged intent, perhaps INTERACTION_DATA, which would allow a bot to read from this endpoint?

For clarity, the bot I have made uses an all messages sent in the server to train an RNN, and my main goal was to make the network generate bot commands (for comed...

chilly siloBOT
chilly siloBOT
#

The issue appears for me on the macOS client, and web client (safari, chrome). Slash commands work for me without issue on iPadOS and iOS. Other users on a discord I run are reporting similar issues as well.

Edit: I've seemed to resolve it by disabling Legacy Chat Input under Accessibility. I had turned this setting on to resolve and issue with not being able to copy/paste into the input field on the Windows client.

<img alt="image" width="683" src="https://user-images.githubu...

chilly siloBOT
chilly siloBOT
#

Description

User Id snowflake is not seen in the server insights page of Discord Developer portal but can be seen in other pages

Steps to Reproduce

-Open discord developer portal
-Go to server insights page
-Observe the page
-Make sure user id snowflake is turned on

Expected Behavior

User id snowflake should be seen in the server insights page

Current Behavior

User id snowflake cannot be seen

Screenshots/Videos

No response

Client and System Information

...

chilly siloBOT
#

Description

The current documentation regarding guild templates is highly unclear on what is and isn't allowed or expected data when working with the endpoints.

Primarily, serialized_source_guild is simply specified as a partial guild without any mention of additional fields, placeholder IDs instead of snowflakes, or any further considerations required for types referenced by this field (permission overwrites comes to m...

chilly siloBOT
#

Description

The documentation for Forum Tag Objec is unclear as to the optionality and/or nullability of its fields. emoji_id and emoji_name, for example, claim to be mutually exclusive, but neither is optional and only emoji_name is nullable.

To add to the confusion, all fields except `name´ are implied to be optional by the notice at the top of the object related to an entirely different route and object.

Steps to Reproduce

Expected Behavior

Current Behavi...

chilly siloBOT
chilly siloBOT
#

Description

When I authenticate an OAuth2 request with /api/oauth2/authorize endpoint where response_type is token, I get redirected, but the URL Search Param prefix ? at the beginning of URL Search Param is #.

Steps to Reproduce

  1. open authorization request which response_type is token on browser like: https://discord.com/oauth2/authorize?client_id=1056824335203045376&redirect_uri=http%3A%2F%2Flocalhost%3A8990%2Fcallback&response_type=token&scope=rpc identify rpc.vo...
chilly siloBOT
chilly siloBOT
#

Description

When moving a channel to a different category, the channel may end up as the first or last channel of the receiving category. From what I was able to gather it ends up as the first if it was previously in the first half of the channels in its old category, and as the last if it was in the last half, but this could be inaccurate.

Steps to Reproduce

  1. Have 2 category channels with a moderate amount of channels in them
  2. Move one of the channels from one category to the...
chilly siloBOT
chilly siloBOT
#

Hi so im a discord bot developer and i got the active developer badge using an application that i had 1 or 2 months ago. I heard the news about removing active developer badge from those who aren't real developers and i was very happy bout this. then, i realized that im not using that applicatin and im using a new application. i would like to see a feature to change the main application for developer badge.
i made a support ticket on support.discord.com about this and a helper replied to me ...

chilly siloBOT
#

Description

If the user's username or channel name consists of characters that cannot be printed from keyboard, the user or channel simply cannot be selected from the list and it is also simply more convenient, just copying id than entering user's username or channel name.

This feature already done for slash command arguments, why not add it to message components

Steps to Reproduce

  1. Copy user or channel id
  2. Paste it to user or channel select menu

Expected Behavior

Th...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

While the version of electron supports webp, and discord itself converts gif emotes to webp, the cdn always returns an error of 415 unsupported type wherever it tries to load webp images, be this in embed or posted link or uploaded file

Steps to Reproduce

post a link to a webp image in discord, watch the dev console report that the cdn returned 415

Expected Behavior

Webp to be loaded as a supported image

Current Behavior

415 unsupported despite being used by...

chilly siloBOT
chilly siloBOT
#

Description

I got an email saying someone was trying to log into my account from alameda and told me to change my password, but then my discord isn't working and I logged out of my discord acc to see if it would be fixed but it wasn't. now it says that I am being blocked from accessing your API temporarily due to exceeding your rate limits frequently, when I have not done anything bad.

Steps to Reproduce

i would like to see if i can my account back because i have not done anything ...

chilly siloBOT
chilly siloBOT
#

Description

We are running a fairly large bot with 15k server but for some reason we sometime get hit by a Global Rate-Limit on the Create Interaction Response endpoint.
i.e. /interactions/[{interaction.id}](https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object)/[{interaction.token}](https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object)/callback.

Discord docs clearly says that this endpoint is not boun...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

For example, you might not want users to send the bot DMs if it uses DMs solely for notifying punishments, such as a /tempban command being used on a user, and the bot telling the user when the ban expires. For the sending DM toggle, this can be useful in if your bot doesn't need the send DMs, so if your bot gets compromised, the user who compromised the bot won't be able to send DMs. If you need to use DMs you could still enable it. The receiving DMs is already implemented by the Discord u...

chilly siloBOT
#

This pull request adds https://github.com/more-cores/discord-commands to the PHP Interactions library list. This library includes:

  • factories for building messages, embeds, commands, nested menus/options/buttons, etc.
  • inbound request signature verification for verifying interaction requests are from Discord
  • extensive documentation/examples, including using the Laravel framework
  • test coverage and a github-action-based test suite UI

While the project has no stars at the mome...

chilly siloBOT
chilly siloBOT
#

Why?
I am currently using message content intent for my bot, but I would like to transition away from it. Currently, I have an interactive menu where users can select a requirement and then enter a numerical value in chat. However, I am considering moving away from this for several reasons. One concern is that modals, which is the alternative to message content intent, only allow for text input. If a user mistakenly enters text instead of a number, or does so intentionally as a form of d...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Currently, the Boolean option is essentially a String option with True or False choices. I believe that it would look and feel better for these option types to have unique UX for selecting true or false.

If the option is required, it could look like a toggle switch that can be pressed on mobile or selected on PC by just tapping the option. Similarly, an optional Boolean can be enabled by tapping on the option and disabled by tapping on the option again (and could be represented by a ballot...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

We occasionally see a 429 response when executing one of our webhooks with no X-RateLimit- headers and the response contains only:

{
  code: 0,
  message: "You are being blocked from accessing our API temporarily due to exceeding our rate limits frequently. Please read our docs at https://discord.com/developers/docs/topics/rate-limits to prevent this moving forward."
}

Is this a CloudFlare ban as mentioned on https://discord.com/developers/docs/topics/rat...

#

On a technical level, there's no retry after info because the response is static, stored in cloudflare firewall rules. But more importantly, hitting this limit generally implies that the application code is broken, and so we don't really want this to be machine recoverable.

As for shared ips, yes you'll have to watch out for that. I believe with GCP you can use cloud nat to assign a static ip or range of ips.

chilly siloBOT
chilly siloBOT
#

Currently, autocomplete does not actually complete the user input, replacing what was written previously instead. For example:

  1. User types Hello,
  2. Bot suggests world!
  3. User selects world!
  4. Hello, gets replaced by world!
  5. Now the input is just world!

I suggest adding an option so that the bot can append the suggestion to the end of the user input, so that in the above example the end result would be Hello, world!

While bot developers can workaround this b...

chilly siloBOT
#

I've been thinking about it. Now it can be implemented if the bot will add the previous user input on its side. However, this is not the solution to the problem, since the enter will complete the input and the user will have to make the input field active again in order to continue typing.

I see two solutions to this problem.

  • Adding a second mode of operation of the autocomplete (atocomplete: 2) in which the list of choises will be added to the user input.
  • Or a more universal option. Add...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

dear Discord,
I have repeatedly tried to ban my little account from a server, the username of my small account is: M Tester#6950, the username of my base son: MATEX#2524, when I watched the channel on the server about the 4th banning I managed to detect an error, the point is that if I go to the icon on the main page it shows a completely frozen screen and does not allow me to click on anything there, i attached a video in which i show what the point is, the phone i tried i...

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

Description

If user's username, role's name or channel's name consists of characters that cannot be printed from keyboard, user, role or channel simply cannot be selected from the list and it is also simply more convenient, just copying id than entering user's username or name of role and channel.

This feature already done for slash command arguments, why not add it to message components

Steps to Reproduce

  1. Copy id of user, role or channel
  2. Paste it to user, role or ...
#

Description

While the version of electron supports webp, and discord itself converts gif emotes to webp, the cdn always returns an error of 415 unsupported type wherever it tries to load webp images, be this in embed or posted link or uploaded file

Steps to Reproduce

post a link to a webp image in discord, watch the dev console report that the cdn returned 415

Expected Behavior

Webp to be loaded as a supported image

Current Behavior

415 unsupported despite being used by...

chilly siloBOT
chilly siloBOT
#

I'm interested in the reasoning behind the 25 Option Choice limit for Slash commands, as it does seem to be particularly restrictive. Is it purely a performance issue? I'm quite new to Discord and Bots, and have much to learn for sure, but I wouldn't have expected that serving up and handling a few hundred/thousand bytes of text as Choices for a Slash command would be that performance intensive, especially in the case of a non public server, and a Bot that will only ever run on that specific ...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

This PR updates the message component data structure to:

  1. Correctly type the values field as an array of strings, rather than an array of select options. Incidentally, this is already shown in the interaction response sample for select menus.
  2. Add the resolved field, which is sent with interactions on user, role, mentionable and channel select menus.

Further, I've described what the values field can be expected to contain; any of the defined options for string selects, and a ...

#

Ah, thank you for the clarification @advaith1. That makes sense. However, the existing docs link to the select option structure (https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-option-structure) which I still believe is incorrect. If so, how best should it be noted that this could contain any relevant type, given that all values so far are encoded as strings?

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

The problem here is that there isn't enough information here to actually debug anything. I recognize that people are occasionally receiving "Unknown Interaction", but that usually indicates a problem with the developer's code.

Personally, I would try capturing a variety of information:

  1. Capture network logs.
    i) There are no retries
    ii) The network request is actually being sent to discord, as opposed to being queued for # seconds due to some ratelimiting, and thus exceedin...
chilly siloBOT
chilly siloBOT
#

That's good; however, documentation that "usually" does stuff one way or another is never a good thing. It should always be crystal clear what an endpoint produces or expects, and one should not have to rely on a general "feel for" the kind of endpoint or other loose, imprecise conventions to figure these things out.

The whole point of documentation is to explicitly tell the end user exactly how things work or should be used, not to leave gaps or guesswork.

#

To be clear - I don't think the change (while an improvement and a good change) is good enough. If I'm looking at the REST endpoint for PATCH /channels/{channel.id}, that clearly states that available_tags is an array of tag objects. The tag object says that emoji_id and emoji_name are not optional, but both are nullable. However, there's an informational header that claims that

info
When updating a GUILD_FORUM channel, tag objects in available_tags only require the `name...

#

Description

Upon hitting the https://www.discord.com/api/v10/guilds/{guild.id}/channels endpoint with an account unprivileged to view specific channels in a guild, all channels in said guild are returned, not just the ones the account is privileged to view.

Steps to Reproduce

curl 'https://discord.com/api/v10/guilds/{guild.id}/channels' \
-H 'host: discord.com'
-H 'authorization: {token}' \ ...

chilly siloBOT
chilly siloBOT
#

For what it's worth, with the increasing number of times we've seen this, I decided to finally look into a bit. In djs there shouldn't be anything getting in the way of the request firing, but I am implementing a separate request handler to handle specifically interaction callbacks. While in theory this won't change the external facing behavior of the request, it at least should streamline the process and make it a little easier to debug.

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

Ah, that makes sense.

On Fri, Jan 6, 2023, 2:49 PM Ian Webster @.***> wrote:

That error message was transient and is no longer returned


Reply to this email directly, view it on GitHub
https://github.com/discord/discord-api-docs/pull/5736#issuecomment-1374115556,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASINGSP52EEFVVHCDTD4T63WRCAM7ANCNFSM6AAAAAAS2K62GY
.
You are receiving this because you authored the thread.Message ID:
@.***>

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Since this brings the topic back up of documenting fields per channel type, could #4106 maybe be considered?

I feel this is a better way of implementing this, it still offers a solution for both ways of implementing a channel feature, to have one object with all parameters or multiple different objects.

It's also less cluttered, since it's just an extra column instead of like 10 new objects. Just my opinion, would be interested to hear other's though.

I don't agree with t...

chilly siloBOT
chilly siloBOT
#

Description:

Currently only http(s) protocols are supported URL field of an embed object. It would be grerat if we also could use links such as "discord://./users/{ID}" to open user profile when clicked. Support for this schema was added to buttons some time ago and allows for many great features to be implemented into bots mainly oriented around UX.

Alternatives Considered

It is possible to use the links with https://discord.com instead of discord://-, but they open a new brow...

#

with how unreliable the discord protocol is and how it’s been unsupported for years (and the lack of mobile support), I do not think Discord should add support for linking it anywhere else. supporting it in components was a bad idea but fortunately I have not seen any bots use that

Instead, Discord should properly route discord.com links in-app so nobody needs to think about using the discord protocol

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

Hello,
I would like to bring up this issue that dates back several months ago and is still not fixed to this day.

I am a developer of a multipurpose bot that has more than 350k+ guilds and we have game commands such as power 4 or tic-tac-toe where we use external emojis from emoji servers that we own and use to enhance the presentation of our messages.

If a server that uses our game controls and has not allowed the @everyone role to use external emojis, it really ruins the game experienc...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

This is my first discussion I've created here so I'm sorry if I've done something wrong.

The ability to disable messages being sent in a pinned forum post would be great. Obviously this would be optional to enable, but could suit many different use cases:

  • Creating FAQs for forum topics, without other members sending messages to make it get lost
  • Use it to show instructions for posting messages (which I know some users do)
  • Provide other useful information that doesn't fit in the ...
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

The API does kinda support this behaviour if you use a bot to edit the forum thread with both sticky and close attributes set to True. However, this only allows one single thread and the client doesn't natively permit this. I agree, this should be a feature because it is a staple of actual forums where you can create sticky-read only threads (and note the pluralisation).

Post Guidelines are not really somewhere to put lots of information about the channel, because its unlikely to be read: ...

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

New interactions. Specifically with message content intent not enabled.

When replying, it does not have a toggle for pinging the author as it does with normal messages

image

And when replying, the bot sees an empty string as the message content. Here is an example where the bot replies to messages from non-bot users with the message content as it is received:

![image](https://...

chilly siloBOT
#

In case it helps, here is the message data for the "example" message. It shows that it is a reply to the interaction message, but it does not show it as containing any mentions.

{
    "type": 19,
    "tts": false,
    "timestamp": "2023-01-09T22:39:12.394000+00:00",
    "referenced_message": {
        "webhook_id": "937376685374996551",
        "type": 20,
        "tts": false,
        "timestamp": "2023-01-09T22:39:06.232000+00:00",
        "pinned": false,
        "men...
chilly siloBOT
#

Description

Custom Webhook avatars no longer work for new webhook messages after "Thread Member Details and Pagination Support" was deployed.

Steps to Reproduce

Send a Webhook message with a custom avatar

Expected Behavior

Webhook message has the custom avatar

Current Behavior

Webhook messages has no custom avatar and does not default to the default Webhook avatar if one is set

Screenshots/Videos

![image](https://user-images.githubusercontent.com/1606710/211473304...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

adding author with icon url returns error 50035

Steps to Reproduce

create embed with author icon url

Expected Behavior

embed has author with icon "https://cdn.discordapp.com/avatars/218774989724188672/3a5980efdd01d1f44a7df499e9c03113.png"

Current Behavior

Error 50035 [Invalid Form Body] on API request, returned content was: {"code": 50035, "errors": {"data": {"embeds": {"0": {"author": {"url": {"_errors": [{"code": "URL_TYPE_INVALID_SCHEME", "message": "Sche...

chilly siloBOT
chilly siloBOT
#

Description

When I try to rename an application of mine in the Developer Portal, it shows an error saying that *_url: Scheme "" is not supported. Scheme must be one of ('https',). when I am not doing anything on those fields. I am only renaming the application name and does not change the application name.

  • = interactions_endpoint_url, privacy_policy_url, role_connections_verification_url, terms_of_service_url

Steps to Reproduce

  1. Go to the Developer Portal
  2. Click...
chilly siloBOT
#

Description

I was seeing multiple bot integrations belonging to the same application in a guild and looking at audit logs it happened when 2 users tried to add the bot at the same time. They compound into a single integration in the UI which leads to confusion as after one is removed it magically appears again.

Steps to Reproduce

Authorise the same application multiple times

Expected Behavior

Only one integration is created

Current Behavior

Multiple are created

Scr...

chilly siloBOT
#

Description

The error code that is reported when requesting the https://discord.com/api/v10/guilds/1062153007355154472 and you are missing access has changed.

Previously, error code 50001 Missing access was reported.

Now, error code 10004 Unknown guild is reported.

This change was not made across a version boundary, and caused our application to perform unexpectedly when determining if our bot was in a server.

Steps to Reproduce

`curl --location --request GET 'https:...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

this is correct for now, we actually wanted to give it a generic name so that we can store any role subscription data on a message in one place. Right now we're using it to show the purchase recognition message but in the future, we might use this field to store some other role subscription message data.

We can update this in the future if we use it for something else though 👍

#

If this were changed how would an application deal with it without crashing?

what I mean is that we might add new fields to that role_subscription_data for a new message type in the future and at that point, this field wouldn't be only used for the ROLE_SUBSCRIPTION_PURCHASE message type. we definitely won't change anything in the role_subscriptions_data for the ROLE_SUBSCRIPTION_PURCHASE type.

chilly siloBOT
#

Description

so one of my bot tokens were leaked online, i got a dm from discord telling me where it got leaked and how to fix it so i fixed it and i keep geting the urgent dm, and i cant get rid of it

Steps to Reproduce

make it so it stops saying that

Expected Behavior

annnoyed

Current Behavior

anoyyed

Screenshots/Videos

![Desktop Screenshot 2023 01 10 - 21 00 47 69](https://user-images.githubusercontent.com/122404692/211661784-24e2b3d7-9b08-46d1-be22-ab9dc005f27a...

chilly siloBOT
#

@drakon64 Hey there 👋 Thanks for opening this, and it's great to see the work you've put into Ktdiscord. However, we want to wait until libraries are a little more stable before adding them to the Community Resources page, so for now I'm going to close this PR.

That said, Ktdiscord looks solid so far and we're happy to reconsider adding it in the future as it's built out and more Kotlin devs start using it.

#

@bkuhl Hey Ben, thanks for building out this library—it looks good and the factories look really helpful for PHP devs. That said, we do typically wait until libraries are a little more stable and have some more devs using them (for a few different reasons).

It's exciting to see your work become public though, and we're definitely open to reconsidering adding it to the Resources page in the future. Keep up the great work 😄

chilly siloBOT
#
Retrieves a specific message in the channel. Returns a [message](#DOCS_RESOURCES_CHANNEL/message-object) object on success.

If operating on a guild channel, this endpoint requires the current user to have the `VIEW_CHANNEL` and `READ_MESSAGE_HISTORY` permissions. If the channel is a voice channel, they must _also_ have the `CONNECT` permission.

this requires the VIEW_CHANNEL permission as well, so adding that here

#
Retrieves the messages in a channel. Returns an array of [message](#DOCS_RESOURCES_CHANNEL/message-object) objects on success.

If operating on a guild channel, this endpoint requires the current user to have the `VIEW_CHANNEL` permission. If the channel is a voice channel, they must _also_ have the `CONNECT` permission.

If the current user is missing the `READ_MESSAGE_HISTORY` permission in the channel, then no messages will be returned.
chilly siloBOT
#

I don't think this information really belongs in a table or in this format. I think to properly address it, we'd need to revisit how we talk about message components in general and how information is split up between "Receiving and Responding" and the "Message Components" pages.

However, that's out of the scope of this PR for sure, and so I'd just put the information in Receiving_and_Responding.md instead (i made a suggestion to the table and table note accordingly).

chilly siloBOT
chilly siloBOT
chilly siloBOT
#
The returned list of audit log entries is ordered based on whether you use `before` or `after`. When paginating using `before`, the list is ordered by the audit log entry ID **descending** (newer entries first). If `after` is used instead, the list is reversed and appears in **ascending** order (older entries first). Omitting both `before` and `after`, defaults to `before` the current timestamp and will show the most recent entries in descending order by ID, the opposite can be...
chilly siloBOT
chilly siloBOT
#

Description

When kicking a bot or remove an integration all the guilds webhooks are checked to see if it owns any of them, but this process can take a while if you have a guild with say 1000 webhooks (the limit), some of the requests were taking up to 40 seconds before the bot was removed, this is not ideal if your kicking say a malicious bot, can the member removal happen prior to the scan?

Steps to Reproduce

Kick a bot in a guild with lots of webhooks

Expected Behavior

Bot ...

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

I had an idea where there would be a type of image in an interaction or embed where when the user clicks on it, their mouse position relative to the image would be sent to the bot as an interaction. This would allow bot developers to have more flexibility with the user interface as they would have a blank canvas to work with.
For example, it could be used in a mini game where there are many options to control the character. It would be difficult to use regular interaction buttons, so the us...

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

Description

If a server has the INVITES_DISABLED feature, trying to edit it's name while providing the public_updates_channel_id field results in a 403 Missing Access. This affects the Desktop/Web clients, while mobile works fine.

Steps to Reproduce

  1. Pause invites in a server
  2. Try to edit it's name on the Desktop/Web client or via the API while providing the public_updates_channel_id field

Expected Behavior

The server name is changed

Current Behavior

The API ...

chilly siloBOT
#
Sent when a guild audit log entry is created. The inner payload is an [Audit Log Entry](#DOCS_RESOURCES_AUDIT_LOG/audit-log-entry-object) object with an additional `guild_id` key. This event is only sent to bots with the `VIEW_AUDIT_LOG` permission.

###### Guild Audit Log Entry Create Event Additional Fields

| Field    | Type      | Description     |
| -------- | --------- | --------------- |
| guild_id | snowflake | ID of the guild |
chilly siloBOT
#

Since the new connections api is quite a significant addition, I felt like it'd be useful to point out this addition prominently to everyone.
However, I'm unsure where to put it chronologically since considering the change was made a month ago.
I also included a link to the blog post about linked roles to provide some more context. Please correct me if links referring to content outside the docs aren't welcome.

chilly siloBOT
chilly siloBOT
#

I think since Shay's already been assigned for a review that's gonna be up to them / I'd just wait for their opinion on the matter.

That said, I added this changelog entry because I myself ran into the issue of the additions being spread across different pages and therefore felt like having all things together in one place could be useful for others. So the intentions are pretty much the same as with the other pr, so I get this point:

Might be added as todo for the rework in #5827 t...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

The current documentation does not note the 'hidden constraints' of uploading stickers.

Also as a note, the API actually accepts stickers uploaded up to 320 x 320 but that's a very strange size when it comes to graphics and computing (since everything else on the CDN comes in some power of 2).

Uploading a gif as a sticker seemingly always returns 50046, so that has also been removed.

chilly siloBOT
#

Saw this issue, writing here since I would like this feature.

I make my users sign up through Google forms (since signing up through my bot would require upkeep costs). One of the questions is their username and tag.
To be able to mention people using my webhook, I need their user id since sending a message with @username#1234 does not mention them in that message.

People have suggested to ask for their user id instead of their username and tag, however I believe it is a hassl...

chilly siloBOT
chilly siloBOT
#

Description

I'm not receiving a response when sending a Gateway guild members request

Steps to Reproduce

  1. send a guild members request
    Here's my payload (id removed)
{"op":8,"d":{"query":"","guild_id":"9934616607********","limit":0,"nonce":"6582741"}}

Expected Behavior

I should receive a response

Current Behavior

I don't get a response.

Screenshots/Videos

No response

Client and System Information

Raw API, Java, Spring WebSocket library

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

There was a recent change to help prevent expired invites being claimed for malicious purposes, i think a side effect of this change was that when a servers vanity invite expires meaning they lost some boosts the invite is locked into that guild meaning effectively stopping any other server from using it.

Steps to Reproduce

Have a server with a vanity invite link and then remove the VANITY_URL feature, notice how other servers can no longer claim the vanity

Expecte...

chilly siloBOT
#

Description

I found out out that, if I open a Discord invite link (https://discord.gg/abcdef or https://discord.com/invite/abcdef) I get a message like "Starting Discord app" and the invite request pops up into the Discord app.

The same doesn't happen for OAuth requests (https://discord.com/oauth2/authorize/...): instead, all of the flow has to be done inside the web browser.

This is quite annoying since an average user is logged into the Discord app, but not necessarily logged int...

chilly siloBOT
#

Description

In this discord api docs all fields for editing a message via a webhook are nullable. For example if a message has embeds in it, and you edit the message with embeds set to null. The embeds will be successfully cleared. If you do the same steps but for components it is ignored and the components are kept.

Steps to Reproduce

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

Firebase storage (google storage) has public tokens available to grant access:
but when sent in a message, the system that embeds it, wraps it without preserving the query parameters

example url:
https://firebasestorage.googleapis.com/v0/b/toobig-85edd.appspot.com/o/files%2F9beae946-b2ca-4451-a2a6-bfb238a9dc6a.png?alt=media&token=f4544f15-a055-450b-b2c4-aad358e00989

resulting url:
`https://images-ext-2.discordapp.net/external/0TiVA8chUNVgSUmZtYB9joawBc5nEoK_YSFcGig...

chilly siloBOT
#

Description

The documentation states that the POST /channels/{channel.id}/messages/bulk-delete endpoint supports the X-Audit-Log-Reason

https://discord.com/developers/docs/resources/channel#bulk-delete-messages

However, it is clear that when I try this, no reason is actually being attached to the audit log.

Steps to Reproduce

POST /channels/{channel.id}/messages/bulk-delete with a valid array of message ids in the messages field, and any valid reason given using the `...

chilly siloBOT
chilly siloBOT
#

Description

When fetching the channel follower webhook created through the "Active Developer Badge" flow (when prompted to select a channel to keep up with updates), source_guild and source_channel are missing

Steps to Reproduce

  1. Create a channel follow webhook through the "Active Developer Badge" flow.
  2. Try to fetch the webhooks in that specific guild and find the payload of the webhook crested before

Expected Behavior

Expected fields are sent

Current Behavior

...

chilly siloBOT
chilly siloBOT
#

Those fields are marked as optional

I am aware, but next to them they state that they will be sent for channel follow webhooks:

(returned for Channel Follower Webhooks)

This is the case for all other channel follow webhooks.

If this is indeed intentional, then maybe the docs should be updated, because it seems misleading (at least for me)

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Because modals could be used for dashboard purposes for bots and there would be no need to website dashboards for many situations. And also a moderator can pick an action for a channel, user and add a description on paragraph / short text input. Just like slash command but you know only way to show a modal is not a slash command, it could be shown with a button interaction and there is no such option on buttons. I think it would be a better experience if we could see such thing!

chilly siloBOT
chilly siloBOT
#

Description

If you set up an application for linked roles without creating a bot for it, it'll appear with the green "Official" checkmark.

Steps to Reproduce

  1. Create an application. Do not add a bot to it.
  2. Set the linked roles verification URL.
  3. Add the app using application.commands scope to a server.
  4. Set up a linked role using it. Note attempting to do so on Desktop will crash the client, thus you must do this on mobile.
  5. Open linked rules and notice it says...
chilly siloBOT
#

Would make sense, can confirm that POSTing:

{
    "recipients": [
        "249287049482338305"
    ]
}

does create a channel of type 1 with a user in the same way POSTing:

{
    "recipient_id": "249287049482338305"
}

does.

Providing 2+ IDs in the recipients iterable results in:

{
    "message": "Bots cannot use this endpoint",
    "code": 20001
}

as expected, so behaviour there is sensible.

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

The proposal in this is to help bots being able to tell when an user is pinging someone through replies, while current behavior is simply checking the message's mention, this can lead to false positives, for that reason this proposal is that the message replies should return wether they are pinging or not, or at least have some way to be able to tell if the reply is mentioning or not, that way moderation bots can easily distinguish and helps to avoid/reduce notifications spam and thus this ca...

#

I think this is an interesting proposal but checking whether the referenced message's author was mentioned is the way the client chooses whether to render @user vs user in the reply too.

If you have automoderation to action mentions, the source of those mentions shouldn't be important (in the case of detecting mention spam)

As text mentions are only valid in message content, you can easily just check the mentions on the reply message, the author ID of the referenced message & then c...

#

Ahh I see, this is interesting although I've been trying to use it with a webhook message, and in the mentions it doesn't seem to indicate if this message was pinged, so I guess the proposal is way more specific and it's about returning the webhook id in the mentions if a message is replying to a webhook. Currently been needing this behavior for a proxy oriented application.

chilly siloBOT
#

The official clients won't provide the option to mention a webhook message in a reply & a webhook ID cannot appear in mentions. The ID of the webhook is returned in the referenced_message field in author -> id and webhook_id.

If your proxy system is using a single webhook, this will let you confirm the webhook being replied to is the one owned by your application and act appropriately. You can also fetch the username of the webhook being replied to by fetching author -> `username...

chilly siloBOT
#

Description

When you have a select menu that accepts more than 1 option, the Discord client will display the options in the order the bot sent them in, regardless of what order you pick them in, however, once the user sends the interaction through, the bot receives the values in the order they were picked in. This discrepancy between what the user sees and what the bot receives can cause a bad UX. I also believe this was not the case when select menu interactions first launched as back t...

chilly siloBOT
chilly siloBOT
#

Description

The discord api documentation here mentions height and width tags. These tags do not appear to do anything. Whether I place them within the image array, or the embed array, it makes no difference. Others have stated that the height and width cannot be changed; which makes no sense, considering the tags exist. If thats true, its highly limiting.

Steps to Reproduce

payload with...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

When editing a channel, if the pass a parent_id and a position, the position parameter is simply ignored and the behavior is inconsistent. This is a follow up to my previous issue #5792 in which I was told to add that parameter, which doesn't actually work. Regardless of whether you pass the position parameter or not, the resulting position seems to be determined this way:

  • If the channel was in the last half of the channels in the previous category, it gets placed at the e...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Currently - we can only make a text input as a modal component.
I've taken the rest below from @NegativeDev (thanks), but here is what me and Negative think should be available in modals.

NumberInput

This would only allow numbers. Pretty self explanatory

SelectBoxInput

This would present a list of boxes of texts, similar to how SelectMenu looks

FileAttachInput

The ability to attach files, with proper security measures in place would be quite nice for different uses, suc...

#

Description

App Description
CellFin is ibbl,cellfin,finance, content rating is Everyone (PEGI-3). This app is rated 5 by 1 users who are using this app. To know more about the company/developer, visit Islami Bank Bangladesh Limited website who developed it. com.ibbl.cellfin.apk apps can be downloaded and installed on Android 5.1 and higher Android devices. The Latest Version of 2.1.1 Available for download. Download the app using your favorite browser and click Install to install the ap...

#

Description

App Description CellFin is ibbl,cellfin,finance, content rating is Everyone (PEGI-3). This app is rated 5 by 1 users who are using this app. To know more about the company/developer, visit Islami Bank Bangladesh Limited website who developed it. com.ibbl.cellfin.apk apps can be downloaded and installed on Android 5.1 and higher Android devices. The Latest Version of 2.1.1 Available for download. Download the app using your favorite browser and click Install to install the...

chilly siloBOT
#

It seems to be only partially finished. There is a way to add languages and write an extended description, but to me there are still two issues remaining:

  1. The short description cannot be localized. It is the first thing users see in the search result, but it only shows in English (or whatever main language is chosen)
  2. The media files (and previously tags/keywords, which seem to have been removed) can't be localized either.
chilly siloBOT
#

I agree with @appellation, this could cause catastrophic confusion. I think you could create a channel type called "Command Channel" or something. The channel does not have a chat but a list of commands from each bot. A layout similar to the forum channel home page. You can also type a command manually on a textbox at the bottom of the screen. Because there is not chat, users will not be able to see any command typed by others. I would love to see this on Discord and think it would drasticall...

chilly siloBOT
#

Description

When navigating to a thread in full view, typically the client will dispatch a THREAD_MEMBER_LIST_UPDATE to collect the full list of that thread's members. When navigating to a thread in an announcement channel a GUILD_MEMBER_LIST_UPDATE is dispatched instead. This is not accurate to the actual thread members on the API, which is correct. Message events for this channel also only seem to be distributed to the thread members as reflected in the API.

Steps to Reproduce...

chilly siloBOT
#

Description

If the user supplies an argument that ends with whitespace, the autocomplete interaction the bot receives is trimmed, and does not end with whitespace.

My bot is too complex to use slash command options for every argument; so I've opted only one option and provide autocomplete suggestions to the user.

If the user types a space for the next argument, the bot cannot supply suggestions because it does not receive the entire user input.

Steps to Reproduce

  1. Begin typ...
chilly siloBOT
chilly siloBOT
#

The timeout appears to be around 3 seconds. I did an experiment where I hosted some images from my own service and deliberately added some sleep before returning the payload. I tweaked this sleep amount until the 0x0 thing started happening consistently and it was just slightly under 3 seconds. Of course there are network effects etc. that make the exact timing hard to determine but this gives strong credence to the theory that discord servers are setting a somewhat tight deadline on fetching...

chilly siloBOT
#

Description

When fetching the "interested" members of an event, it can take several seconds for the api to fetch everyone

Steps to Reproduce

[Desktop app]

  • Have an event with ~100 people interested
  • Clear your cache (ctrl+r / cmd+r)
  • Go to the event details and click the "XXX Interested" tab

Expected Behavior

The users endpoint takes around a second to fetch everyone and return the list

Current Behavior

It takes way longer

Screenshots/Videos

![](https://cdn....

chilly siloBOT
chilly siloBOT
#

it's weird to say ''admins'' then mention a specific permission since they have all permissions. maybe something like this can work better? (also some formatting changes)

> For servers with Onboarding, members that do not meet verification requirements can only participate in the server if they have the `BYPASSES_VERIFICATION` flag. This flag can be set by members who have the `MODERATE_MEMBERS` permission.
chilly siloBOT
chilly siloBOT
#

Description

I can't log back in, because it's telling me that I've been blocked from using the API

"You are being blocked from using our API temporary due to our rate limits frequency

Steps to Reproduce

I don't have a cURL

Expected Behavior

Can you get me back in

Current Behavior

I have to use what's app to message my friends instead of discord to this is resolved

Screenshots/Videos

![Screenshot_20230127_133238](https://user-images.githubusercontent.com/123746...

chilly siloBOT
chilly siloBOT
#

Why am I opened this discussion?

I did because there is a lot of discussions for modals. I want to collect them and show my ideas about these.

Most Wanted Features for Modals

Attachment Component

  • [ ] Planned
  • [ ] Deployed

Related Discussions

  • #4482 opened by @FedorLap2006
  • #4899 opened by @seailz
  • #5674 opened by @AngeloCore

Description / Use Cases

I know the attachments option just came out, but, since we got modals, would be nice to have an attachm...

chilly siloBOT
#

Description

My bot has a slash command that accepts a channel as an option. On desktop I'm able to select a thread and everything works fine, but on iOS when selecting any threads quotes ("") appear around the thread name and it says invalid channel. If I remove the quotes manually and leave the # it works as expected.

Steps to Reproduce

  1. Create a slash command that has a Channel Option.
  2. On a desktop OS (tested using macOS 13.2 public beta) use the command and select a Thre...
chilly siloBOT
chilly siloBOT
#

Here is a quote from the FAQ https://support.discord.com/hc/en-us/articles/10388356626711-Connections-Linked-Roles-Admins

Q: Where can I see when a member has a Linked Role in the server?

A: Members who pass the checks for a Linked Role will not automatically show up in the role’s member list. Members will need to opt-in to the Linked Role by going to the Linked Roles tab under Server Settings, select the Linked Role of interest, and connect to the necessary accounts. This ensures th...

chilly siloBOT
#

Description

The endpoint /users/@me/guilds returns 199 guilds in the first call and not 200 even if I manually specify 200 like /users/@me/guilds?limit=200

But if I use the after parameter using the last id returned by the above command, then I get 200 guilds.

Steps to Reproduce

Call the endpoint /users/@me/guilds with a bot token where the bot is in more than 200 guilds.
It will return 199 instead of 200

Expected Behavior

Return 200 guilds

Current Behavior

...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

According to RFC, 204's should return no bodys at all. Discord will return an empty body instead.
https://www.rfc-editor.org/rfc/rfc2616#section-10.2.5
This breaks a few http libraries that follow RFC.

Steps to Reproduce

curl -v -XPUT -H 'Authorization: Bot TOKEN' -H 'Content-Length: 0' 'https://discord.com/api/v10/channels/{channel_id}/pins/{message_id}'

Expected Behavior

No body is returned with no content-type header

Current Behavior

An empty body is r...

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

I am currently updating my bot to utilize ephemeral messages in order to lower the clutter it creates, a highly requested change from the community. However, this means commands which edit settings specific to my bot are essentially invisible to other users. This can cause issues if permissions are not setup correctly and someone is changing settings/using commands they shouldn't be.

I would like to have either:

  1. The ability to call the api to add an audit log entry so that I can spec...
chilly siloBOT
chilly siloBOT
#

Per connection implies that the rate limit resets upon a disconnect. It could refer to the initial connection or a session. It's ambiguous because "connection" is currently defined as process in the documentation; not a resource.

Per session implies that a bot application will be limited to 120 RPS per session. For example, an bot application (token) with a session start limit >1 could maintain three dif...

chilly siloBOT
#

Description

If you try to search for all messages in an old channel with a ton of messages (ex: townhall's #general), the results will be very inconsistent. It may return around 500k results at first, then 2 millions (the correct amount) after a few more tries

Steps to Reproduce

  • Have an old server with a lot of messages (ex: .gg/discord-townhall)
  • Search for something that will return a lot of results (ex: in:general)
  • Look at the number of results
  • Do steps 2&3 again and...
chilly siloBOT
#

Description

I hope this is the right place to provide this type of feedback. It's not directly an API bug, but it causes many problems when using Bot features.

There are many Android users out there, who are not so technically minded. They using that, what the phones provide them. For Huawei or Samsung users it's their own app store. Especially Samsung with their Galaxy Store.

Unfortunately, these app versions are no longer maintained, which certainly has reasons. E.g. the Samsung ...

chilly siloBOT
chilly siloBOT
#

@ajpalkovic to me that seems a bit strange though, even if it's not practically 7 days. The client still refers to these threads as "active" despite them having no activity for months, I have one that hasn't been active since september and certainly doesn't seem active to me. Unfortunately, this also means these threads always show up on the older mobile apps, which haven't been updated to implement hiding (obviously this is a self-inflicted inconvenience, but worth noting nonetheless).

chilly siloBOT
chilly siloBOT
#

Motivation

In the Get Current User Guilds endpoint, you can get a list of an oauth'd user's guilds. However, the response does not indicate which of the guilds currently have invited the bot. In our application, we'd optimally display a list of the user's guilds and clearly differentiate which ones are already setup and which haven't been.

Alternatives

For a bot that connects to the gateway, you could ...

chilly siloBOT
chilly siloBOT
#

Seems more like a bug

Allowing a token response type for this scope would allow a user to obtain valid OAuth2 credentials to manage their own metadata. This would allow a user to arbitrarily meet the criteria for any linked role's application-based requirements. While other scopes are secured by requiring a bot token in auth headers to use functionality (gdm.join, guilds.join), this scope simply refuses the token response type, meaning the scope is secured by requiring a code gra...

chilly siloBOT
chilly siloBOT
#

I'm not sure if this is already a feature but I didn't see any mention of it in the docs.

I'd really love to grab bio's and I feel that could open a lot of possibilities with bot development, to name a few :
---------------------
Verification bots - Display the bio so staff don't have to dig through the roster
User detection - Check for keywords in the bio of suspicious, can be used in logging or a user filter
Alt detection - It's a bit of a stretch but it could be used as one method ...

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

A very commonly requested feature is to clear the selections people make when using select menus. Right now, the preferred way to clear these selections, is to edit the message components.

However, this causes some problems. When the components of a message are edited (even without changing anything) the menu clears for everyone who can see the message. This is a very bad user-experience, since it also clears the current drafted selections of users who haven't submitted anything yet.

...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

You're able to create forum posts with an empty title, this breaks the UI of the app in multiple places.

Steps to Reproduce

The request url is
https://discord.com/api/v9/channels/${channel.id}/threads?use_nested_fields=true

On Desktop:
Simply send a curl request to create a forum post, however leave the "name" field empty.

On iOS:

  1. Navigate to the forum creation screen as you normally would
  2. Don't enter a name, click onto the "Enter a message" fi...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Hi!

First of all, thanks for the awesome GitHub-compatible webhook provided in https://discord.com/developers/docs/resources/webhook#execute-githubcompatible-webhook, it saves us from having to specify a custom GitHub actions job for each repository to get notifications on Discord.

However, I do miss one relevant detail on our notifications for Pull Requests - It doesn't display who the reviewers are, so our whole team keeps clicking the PR notifications even if only one member is assi...

chilly siloBOT
#

Indeed this was rude... However closing and locking #1280 was the issue, and EXTREMELY rude. Thus you got this. The correct action here is to reopen #1280

"Simply posting on existing issues is better" I completely agree... But tell us how to do that on a locked issue? And no explanation as to why!

Reopen the original issue. Please!

chilly siloBOT
#

Coming in with some spicy takes.

IPV6 support is not a straightforward addition. Discord are aware that IPV6 exists without a Github issue being opened. Having a discussion on a Github issue about IPV6 support is not really helpful because... what is there to discuss? Support isn't there yet but assumedly is in the pipeline, as I said, not a simple addition. Currently, some hardware doesn't even support IPV6.

Would it be nice if IPV6 was supported? Sure! But if you're a user connecting ...

chilly siloBOT
#

Comparing this to TLS versions is not appropriate.

you probably have an IPv4 address available to you
Taking an example from my personal experience, this is inaccurate. IPv4 addresses are rapidly being used up and for example Hetzner, a very popular VPS service, charges you extra to use IPv4. I’m sure many others do too.

Your analogy would be more accurate if you had to pay to use TLS 1.2.

Having a discussion on a Github issue about IPV6 support is not really helpful because...

chilly siloBOT
#

ENG:
Add a function to display the webcam as a separate window.
Example:
I'm watching a screen demo at a friend's house, and I want to display the webcam on the 2nd monitor as a separate window.
Right now there is no such function, which is very stressful...
Output the image from the web camera, in a separate window. Web camera on the 2nd monitor, demonstration screen on the 1st monitor. It is more convenient and practical. Very much hope that you will introduce this feature.

RUS:
Д...

chilly siloBOT
#

ENG: I'm watching a friend broadcasting on Discord and he's sitting with his webcam on at the same time. If I open his demonstration to the full screen, his webcam remains in a small square at the bottom of the screen. It would be much more convenient if it were possible to pull out his webcam into a separate window and move it to the second monitor.

RUS: Добавить функцию вывод вебкамеры отдельным окном. Пример: Я смотрю демонстрацию экрана у друга, и я хочу ОТДЕЛЬНЫМ окном вывести в...

chilly siloBOT
#

It would be nice if User Selects supported searching for Users by User ID, and showing results of Users who match the search query with their username, even though they're nicked in the Server.

Right now, User Selects do not show results when searching by a valid User ID (even though Slash Commands' User Options do).
Likewise, User Selects do not show Users who match the search query, because they are nicknamed in the Server (and thus the User Select seems to search by Nickname first, ign...

chilly siloBOT
#

Description

  • Bot A has created a guild.
  • In the guild, Bot A has created a role with the admin permission. All other permissions are cleared.
  • Bot A assigns the role to itself.
  • Bot B joins the server.
  • Bot A cannot assign Bot B the role due to a 403 Missing Permissions error.

This should not happen because Bot A, the bot invoking the request, is the guild owner. Additionally, Bot A also has a role with the admin permission. This issue does not happen with other members. Bot ...

chilly siloBOT
#

Greetings,

Right now, there is no way for a bot to effectively know who paused/unpaused the server invites and this becomes a bit challenging (or time-consuming) to deal with on large Discord communities where you have a team of many moderators/administrators who can execute said action. A gateway event to listen to this action through bot and to log who executed this action would be really helpful in such aforementioned large communities.

chilly siloBOT
#

Sounds like this is a request for logging when invites are paused/unpaused in the guild's audit log, not for a new gateway event.

Pausing/unpausing invites already triggers the GUILD_UPDATE event with an updated features array, but gateway events other than GUILD_AUDIT_LOG_ENTRY_CREATE (which is emitted whenever something is added to the guild's audit log) do not specify who performed an action.

#

This should probably also be mentioned in the Resuming Section

diff --git a/docs/topics/Gateway.md b/docs/topics/Gateway.md
index a0aa5f9..ff2de4a 100644
--- a/docs/topics/Gateway.md
+++ b/docs/topics/Gateway.md
@@ -235,7 +235,7 @@ There are a handful of scenarios when your app should attempt to resume:
 
 Before your app can send a [Resume (opcode `6`)](#DOCS_TOPICS_GATEWAY_EVENTS/resume) event, it will need thr...
chilly siloBOT
#

@advaith1 you are right, sincere apologies. Only the newly added gateway event per #5849 has user_id prop in its payload, for rest we need to manually fetch who did action through GET /guilds/:id/audit-logs request.

Upon re-reading your initial message, I would like to ask if the current discussion title seems vague/not relevant enough to my described feature request? If yes, then please suggest a more appropriate title so to better aid others in understanding this discussion and to c...

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

Description

There is no way to search in the user/channel selection component on Android.

Only 15 options are displayed, and without a way to search, if the user/channel I want to select isn't in that list, I can't search for it!

Steps to Reproduce

Use a command that uses the channel/user selection component on Android and clicks to select.

Expected Behavior

Be able to search users/channels.

Current Behavior

Only 15 options are displayed with no way to search for a...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Just like how slash commands got a QOL change allowing you to obtain their id from the client, it would be really cool to do the same thing with forum channel tags, either in the base channel UI or in the settings part. Right clicking could bring up a menu with an option to copy the id:

example

Needing to send a request just to get the id of something is not really convenient or al...

chilly siloBOT
chilly siloBOT
#
[discord-api-docs] Branch hemu/update\-automod\-limits was force-pushed to `eee616f`
chilly siloBOT
#

Summary

Hey folks!

This is actually my 2022 hackweek project which I got to finish to completion. :)

During a message send request, if you include the new SUPPRESS_NOTIFICATIONS flag it will not broadcast any push/desktop notifications but will still increment the relevant mention counters.

The intention is that you can get someone's attention but not feel like you could be distracting them. Like when you DM someone at 5am. I'm sure some bots can leverage this as well to avoid...

chilly siloBOT
#

Description

The audit log event only gets sent once for the first action taken instead of all actions taken by a moderator.

For the following audit log events: MEMBER_MOVE (26), MEMBER_DISCONNECT (27), MESSAGE_DELETE (72)

If this is intended and is going to stay the way it is now, then there should be a note on the "Guild Audit Log Entry Create" event detailing this is intended.

Steps to Reproduce

Message Deletes

  • Send multiple messages on a different accoun...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

We have received reports of thread channels with "name": null. This seems like an API bug.

Steps to Reproduce

Received in GUILD_CREATE threads array.

Expected Behavior

Names should not be null.

Current Behavior

Names are null.

Screenshots/Videos

{
  "rate_limit_per_user": 15,
  "owner_id": "...",
  "flags": 0,
  "type": 11,
  "message_count": 2,
  "total_message_sent": 2,
  "last_message_id": "1072268300576366672",
  "parent_id": "...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Currently experiencing 2-3 bots per week accessing a Discord I moderate. They always have an about me section mentioning DMs for art commissions. It would have been amazing to do some warning to my moderators for certain keywords in the their about me, but I guess that won't be happening.

This makes moderation harder. Please reconsider this decision or stop the bots in the first place. Unless Discord creates the appropriate tools to fix this, we should at least be able to make our own tool...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Hello!

I have been developing discord bots for a bit now and with the new application commands I thought it'd be nice to have a UI to visually see your global/guild commands, delete them with a button, or create new ones through a form! I thought of this idea just because it gives a nice visual representation and can be tedious. I have created an alpha version of this at https://discordcmds.com/ which supports slash commands with options and choices. I think this would be a great solution ...

chilly siloBOT
#

Description

Specific emoji "Palm Up Hand" https://emojipedia.org/palm-up-hand/ does not display on select menu options on windows. Works fine on android and IOS

Steps to Reproduce

create a StringSelectMenuBuilder and add an option that have the emoji "Palm Up Hand" on the label or in the description. It does not display.
Works fine on the Button component.

Expected Behavior

I expect the emoji to display

Current Behavior

Emoji display as an empty space

Screen...

chilly siloBOT
#

Just to be clear, I'm talking about using the emoji: { name, id, animated } structure here, not (just) about emoji_name being null - but rather, to use that partial emoji structure instead of those two emoji_name/emoji_id keys. Or probably use both representations for client backwards compat. Because otherwise, 5+ endpoints use one format and 3 endpoints use another format, which makes the API even more inconsistent with itself.

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Also, the doc currently states that:

The only operation that should happen within an archived thread is messages being deleted

So, if I understand the changelog correctly, you won't be able to delete messages that you have sent in threads that are locked and archived. Is there a reason for this?

AFAIK, users can currently delete any message they sent as long as they can view the channel (they don't need SEND_MESSAGE or any other permission). This behavior is good for privacy becaus...

#

@Zoddo yea I think that's correct can make it a bit more explicit if it's helpful

User Activity Active/Unarchived + Locked Archived + Locked
Send message
Change post title
Edit tags
Edit messages
Delete messages
Add/remove reactions
Follow/unfollow

Whether you compute the permissions on your side or just have built-in error handling is up to you

chilly siloBOT
chilly siloBOT
#

Description

I seem to be able to send more than 5000 characters to my discord bot without being blocked, the interaction goes through and on the bot side it shows the huge amount of characters. I do get the little red text as in the image below in my discord client, but it still goes through just fine.

In the image below I sent a 5508 characters long message, and I don't even have nitro.

Steps to Reproduce

Deploy a slash command with a string option.

Expected Behavior

It e...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

Messages of type 4 were introduced for GDMs and cannot be deleted. This is problematic as the type 4 message type has content matching the name the thread has been set to. This allows all formatting any message content would normally allow, including triggering the embed unfurler (which additionally generates an embed that cannot be suppressed). AutoMod & the native link filter treat these messages appropriately:

{
  "message": "This can't be sent because it contai...
chilly siloBOT
#

Hi all, I'm trying to make a bot that will respond to new messages, it works, but does not see some emoji (don't know what's involved). So, how can I complement the bot to make it respond automatically even to emojis it doesn't know about?

That is, for example, he reacts to emoji 🎉 but does not respond to emoji :swords:

import requests
from colored import fg
from time import sleep
from os import system


RefreshTime=20

headers = {
    'authorization': "TOKEN HERE"
}


...
#

Hi all, I'm trying to make a bot that will respond to new messages, it works, but does not see some emoji (don't know what's involved). So, how can I complement the bot to make it respond automatically even to emojis it doesn't know about?

That is, for example, he reacts to emoji 🎉 but does not respond to emoji :swords:

import requests
from colored import fg
from time import sleep
from os import system


RefreshTime=20

headers = {
    'author...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

As part of the Guild Ban Add event, it would be helpful to know how long ago messages were deleted for as part of that ban.

Giving this information would allow proxy style bots delete messages that were proxied for that user during the ban event. Right now, if a user gets banned and has messages proxied, there's no simple way to automatically delete those proxied messages, and with this proxy bots could do it themselves.

chilly siloBOT
#

Description

When receiving an HTTP request from discord for an interaction and then responding specifically via an HTTP response with any file somewhere above 82 kb (not sure of the exact size limit it has but all I know is that sizes at 82 kb definitely work and sizes at or greater than [192 kb](https://user-images.githubusercontent.com/66775276/218924241-9951f46c-c49a-4989-8a60-e402...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Stage channels now have text chat, screenshare, and video support.

This PR adds stage channels to lists that should now have them. I also removed it from the Deafen Members permission as that is not visible in the client, assuming that the client behavior is intentional. The client is unintentionally missing Manage Webhooks for both voice and stage channels.

The related PRs #5273 and #5927 should also be merged for complete documentation.

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

NOTE: this is not a dupe of #4591, as that talks about adding video streams to voice channel and this request is the opposite, using the video feed from the voice channels in external applications.

Being able to use the video feed / screen sharing in external applications would be really useful, e.g., integration with streaming software such as OBS or StreamLabs. Currently, you have to capture the screen and crop the area to the position of each of the participants or the shared screen, an...

#

At a minimum:
method needs to be PATCH

  • If you don't do this, you get a 405 method not allowed

The body of the patch needs to be rewritten so that the variable can be replaced

  • If you don't do this you get a 400 "Value \"$ROLE_ID\" is not snowflake."
-curl https://discord.com/api/v10/guilds/$GUILD_ID/members/$BOT_B_ID -H "Authorization: Bot $DISCORD_TOKEN" -H "Content-Type: application/json" -X POST -d '{"roles": ["$ROLE_ID"]}'`
+curl https://discord.com/api/v10/guilds/...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

When responding to an interaction (received from HTTP POSTs) specifically of a message context menu interaction with form-data, it will just 'not take it' and fail.

Steps to Reproduce

  1. Have an HTTP-only application that can handle interactions received from HTTP POSTs
  2. Receive a message context menu interaction
  3. respond to that interaction via HTTP Response with files
  4. profit fail

Expected Behavior

the ability to reply with files via HTTP Response j...

chilly siloBOT
chilly siloBOT
#

Can you provide an example payload you are sending?
@devsnek

--form-data-boundary-0dm1fjsql7yhc3x3
Content-Disposition: form-data; name="payload_json"

{"data":{"embeds":[{"color":9528807,"fields":[{"name":":inbox_tray: Input","value":"```js\nreturn 'test'.repeat(2000)\n```"},{"name":":outbox_tray: Output","value":"Output is in file preview"}],"footer":{"text":"Feed me code"},"title":":white_check_mark: Success"}],"attachments":[{"id":0,"filename":"evalOutput.js"}]},"type":4}

--form-d...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Hi!
I need help with setting my first Discord bot.
I have made the application in Discord developers portal. I have added it to my Discord server.
I have set the INTERACTIONS ENDPOINT URL in this discord bot. It was checked and saved successfully.
I log every request to this endpoint. I see the requests that was during the checking of the URL.
I have checked the webhook with Postman and it worked well. But i see that the bot doesn't send the message to my webhook. There are no any logs a...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

The Application Role Connection Metadata Type variants DATETIME_LESS_THAN_OR_EQUAL (5) and DATETIME_GREATER_THAN_OR_EQUAL (6) are documented in reverse from the way that they actually work in practice.

DATETIME_LESS_THAN_OR_EQUAL, which is type ID 5, is documented as such:

the metadata value (ISO8601 string) is less than or equal to the guild's configured value (integer; days before current date)

Our application's join_date field was configured as type ID ...

chilly siloBOT
#

I think this is an interesting miscommunication on what greater than and less than actually means in this implementation.

To my understanding, and based on behaviour, DATETIME_LESS_THAN_OR_EQUAL equates to a difference between datetimes being less than or equal to the given value (where the datetime provided in the metadata is compared to the current datetime). That makes behaviour consistent with expectations. Based on the description given:

the metadata value (ISO8601 string) is les...

#

Yes, this issue was opened as a problem with the docs, not necessarily a "bug", though it seems like the issue creation wizard forces the bug tag automatically.

The docs don't mention that the comparison is against the difference between the datetimes. If it did, then the current names make sense. However, the current descriptions of the DATETIME_LESS_THAN_OR_EQUAL and DATETIME_GREATER_THAN_OR_EQUAL variants, clearly say "metadata value is less than configured value", which is directly...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

GET /channels/{channel.id}/threads/archived/public and similar endpoints used to order members according to the order of threads but this behaviour changed today. I know that this behaviour was not documented but it was useful and the change broke my library. I create the issue to know if this change was intended and I should update my library.

Steps to Reproduce

Send GET /channels/{channel.id}/threads/archived/public and compare the order of members with the ...

chilly siloBOT
#

Description

Navigating to channels will trigger an API call to check for user entitlements in a guild. This behaviour is not prevented from happening in DM channels.

Steps to Reproduce

  • Navigate to DM channel
  • Observe as GET to https://discord.com/api/v9/guilds/@me/entitlements is made
  • Observe 400 error response

Expected Behavior

Navigating to a DM channel does not trigger an entitlements check

Current Behavior

Navigating to a DM channel does trigger an entitl...

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

Description

It seems wrong to me to issue new refresh token all the time, what's the point of having them in the first place if they expire ? Anyway I think this should be documented to avoid confusion 👍🏻

Steps to Reproduce

follow oauth2 flow and refresh a token, if you use the same one it will throw invalid_grant

Expected Behavior

Original token should work

Current Behavior

Each token is single-use

Screenshots/Videos

No response

Client and System Inform...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

From time to time a weird error occurs. When I press buttons, I receive "This Interaction Failed". Discord denies my request:

{"code": 50035, "errors": {"data": {"_errors": [{"code": "COMPONENT_VALIDATION_FAILED", "message": "Component validation failed"}]}}, "message": "Invalid Form Body"}

There is no regularity and that's why it's weird. Custom IDs are absolutely correct, but Discord itself refuses to validate my component. Only some of the buttons stop work...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

When a forum post is "closed" (not locked) and normal users attempt to interact with a component inside it, Discord gives them an error (Example gif and images attached below);

The reason we are trying to use components in "closed" posts, is for our marketplace system, which can easily have enough posts to hit the 1000 active threads limit imposed by Discord. By closing the posts, we ensure the post does not contribute to that limit. We then have buttons in the post that a...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

While attempting to get my bot app prepared for the App Directory, I came across an issue where the Developer Site would not allow me to enable discovery because "Your application's description may not contain any harmful or bad language".
After trying every combination of censoring, word replacing, and rewriting, the issue persisted. I discovered right as I was about to give up (thanks to Daniel💻#7205 in ddevs) that if your app description (not the App Directory descripti...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

I'm trying to send a message via a webhook to a forum chat (creating a new post), but when I send it with components like buttons, it returns an empty array of components

Steps to Reproduce

  1. creating webhook for forum chat
  2. send json obj to that chat with components array

Expected Behavior

a message should have appeared in a new forum thread with buttons

Current Behavior

the message is created without components and embeds

Screenshots/Videos

My...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Hi, this error is returned under these conditions:

  • the access token is invalid
  • the ID of the associated user that authorized the token doesn't match the user ID in the URL
  • the access token was authorized under a different application than the application of the bot you're sending the request with

Since you've verified the access token is valid, then assuming the user IDs match it's likely that it was authorized under a different application.

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Hi, truncation to the upper user limit on stage channels is the intended functionality here, but it may be something we can revisit in a future API version. Thanks for the report

Why is this intended? A 200 indicates the channel was successfully updated but that is not the case, and so a local cache will be out of date. If we're going to receive a 200 OK http code that should be treated as a 400 error code, then it should be documented as such.

chilly siloBOT