#github-notifications

1 messages ยท Page 27 of 1

chilly siloBOT
#

I think breaking changes are fairly unlikely at this point, the protocols are generally finished, and been tested for a few months now. If there was a breaking change, it's hard to say, just because there's nothing planned and it's hard to imagine what that would be so we'll have to play it by ear.

I think what's more likely is things like some new status codes (there will be at least 2 I think, for when threads are "full"), and there may be additional features, especially around mode...

#

Will there be a way to test out threads before this officially ships? A lot of these changes seem fairly complex (especially with the new layer of channel nesting and complexities there) and at the moment it's not trivial to conceptualize how threads even work (much less bug-hunt with them) without being able to play with it in action.

As far as I understood there will be, they're having some sort of allowlist for that. Hoping to get there :)

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#
Users can **create** a thread if they have _both_ the `SEND_MESSAGES` permission and the appropriate threads permission (`USE_PUBLIC_THREADS` for public threads, `USE_PRIVATE_THREADS` for private threads) on the parent channel.

Users can **participate** in a thread if they have _either_ the `SEND_MESSAGES` permission or the appropriate threads permission (`USE_PUBLIC_THREADS` for public threads, `USE_PRIVATE_THREADS` for private threads) on the parent channel.
#

Description

I have a website where users log in via OAuth2, 2 users match on the website and we create a private voice room for them via the API. The room gets created fine, the endpoint returns 200 and it is visible for an admin user. The problem is that if the user we are creating the private room for have not joined the server prior to the channel creation then he will never be able to get into the room.

I'd like to know if this is expected behaviour. For my use-case it would...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#
Unlike with channels, the API will only sync updates to users about threads the current user can view.  When receiving a [guild create](#DOCS_TOPICS_GATEWAY/guild-create) payload, the API will only include active threads the current user can view.  Threads inside of private channels are completely private to the members of that private channel.  As such, when _gaining_ access to a channel the API sends a [thread list sync](#DOCS_TOPICS_GATEWAY/thread-list-sync), which includes ...
chilly siloBOT
#

Yeah, responded to this elsewhere, but the first two are things that maybe could be valuable to future channel types, so figured they should be at the top level. The others are only ever valuable to a thread, so I decided to keep them in a "sub object". member though definitely wouldn't go there, it's a per-user thing, so I don't think it belongs with per-channel settings, you know?

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

Hmmmmmmmm. So the reason these don't have the guild prefix was actually a fairly intentional thing, but for internal reasons, we store threads and guild_* channels very differently! But I can understand that's not a concern for bots. They are still synced differently though, hmm

I think right now my head is at: There's a good chance we'll add more types of text channels in the next say 5 years, so tying it to the channel type is a bad idea?

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

I'm not sure why there's need for these 3 endpoints to be seperate:
/channels/<channel_id>/threads/active
/channels/<channel_id>/threads/archived/public
/channels/<channel_id>/threads/archived/private.

It would be more consistent to merge these 3 under a single /channels/<channel_id>/threads endpoint and use query parameters such as state and visibility if needed to be filtered.

However this does add scenarios where someone might try to filter for threads which are active...

#

Description
It is possible to bypass the 8MB upload limit using the Edit message endpoint.

Steps to Reproduce

  1. Send a message with a 8MB file.
  2. Send a PATCH request to /channels/{channel.id}/messages/{message.id} passing a 8MB file:
curl -X PATCH "https://discord.com/api/channels/{channel.id}/messages/{message.id}" -H "Authorization: Bot token" -H "Content-Type: multipart/form-data" --form "file=@"...
chilly siloBOT
#

This endpoint isn't really consistent with the other endpoints for threads. It would make more sense to merge this with the private threads endpoint i.e. channels/channel_id/threads and have a private boolean field in the json payload. And of course a message_id field which would be required for public threads.

This also works as a future proof for potentially being able to create public threads without needing a message to be provided.

#

@msciotti the linked pull request does not close this issue as the @everyone role is not intended to be used for slash command permissions and there is no other way to disable commands per guild.

This is considered working as intended. The everyone role is not supported for slash command permissions at this time, since the default_permission is meant to serve that purpose.

_Originally posted by @night in https://github.com/discord/discord-api-docs/issues/2798#issuecomment-8185...

#
## Join Thread % POST /channels/{channel.id#DOCS_RESOURCES_CHANNEL/channel-object}/thread-members/@me

Adds the current user to a thread. Returns a 204 empty response on success.  Also requires the thread is not archived.  Fires a [Thread Members Update](#DOCS_TOPICS_GATEWAY/thread-members-update) Gateway event.

## Add User to Thread % POST /channels/{channel.id#DOCS_RESOURCES_CHANNEL/channel-object}/thread-members/{user.id#DOCS_RESOURCES_USER/user-object}

Adds another ...
#
#

tbh not even sure why permissions has the hex values, for the flag tables its just the shift:

(Also intents.) I meant to bring this up at some point. Permissions hex values came first with the original docs. I think that documenting flags with their bit shifts was a trend started by Mason (#754) and it stuck. I wouldn't mind changing permissions to bit shifts, but I think there is familiarity with seeing them as their hex values (for example, people tend to recognize the admin permission...

#

I don't really mind the endpoints being separate, it's not like it matters much, but I'm confused by this "100% against" poll. One can retrieve all channels within a guild via a single REST request and then filter it client-side, but here we get 3 separate ones just for the sake of filtering?

Why would these have different rate-limits? Doesn't the internal logic differ only by the queried type/archive state?

chilly siloBOT
chilly siloBOT
#

If I understand this correctly, right now THREAD_CREATED is a message that appears in the parent channel that functions as a reply message to the original message and announces that a PUBLIC_THREAD has been created, however, it seems possible that there may be other non-message-originating thread types in the future that would need to be similarly announced into the parent channel.

These threads would not have an...

chilly siloBOT
chilly siloBOT
#

This would be really useful for bots that bridge other communication services to Discord. For example, the Matrix appservice for Discord uses webhooks to simulate users sending messages from Matrix. It would be great if a Matrix user could use the reply feature in Matrix and it would be properly represented in Discord (see https://github.com/Half-Shot/matrix-appservice-discord/issues/693).

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Could you confirm this works as expected? Adding an userID to the permission_overwrites which has never been in the guild returns a 200 request but upon that userID actually joins the guild he does not have access to the channel.

(Also if i do the exact same request while the user is in the guild then everything works fine)

chilly siloBOT
#

I'm in multiple naturalist & birder Discord communities, some with sizeable memberships (> 1k members) who would benefit from greatly from OG audio tag support. For example, xeno-canto.org (a huge repository of birdsong recordings) sets these 3 audio-related OG tags:

<meta property='og:audio' content='https://www.xeno-canto.org/489750/download' />
<meta property='music:duration' content='10' />
<meta property='og:audio:type' content='audio/mp3' />

example is from https:/...

chilly siloBOT
#

IF we were to make a change here, what would that look like:
I think we'd have /channels/channel_id/threads and /channels/channel_id/users/@me/threads
The former for all threads, the latter for joined threads
Both would take a visibility arg, public/private
The reason for separate routes is because the first route is sorted by archive timestamp and the second route is sorted by id, so I think keeping those separate makes more sense.

The first oddity we get to is the "all threads" r...

chilly siloBOT
#

I think the permissions varying are fine, that's the case on e.g. creating messages.

But let's say you went with the single route for threads and had status as a field:
If it was set to archived, you'd order them by archive_timestamp with pagination.
If it was set to active, you'd order by id without pagination.
And for both active and archived you could just fallback onto ordering by id with pagination?

I think this in itself is fine, because the same behavior has to be ...

chilly siloBOT
#

Description

When responding to a slash command with ephemeral embeds, the first one you send is never actually ephemeral. Subsequent ones are:

Screenshot

Steps to Reproduce

  1. Execute a slash command, defer the response
  2. Send 2 message creates to the webhook with embeds, both ephemeral
curl  https://discord.com/api/v8/webhooks/{bot.id}/{interaction_token} -H 'Content-Type: application/json' -d '{"flags":64,"embeds":[{"descript...
#

Do you have any code to reproduce in which the initial response should be ephemeral but is not? The curl command in the description just seems to be for the followup, which seems to work properly.

If you are using a deferred response (type 5) then the initial deferred response must be ephemeral; public messages (including public loading messages) cannot be edited to ephemeral, and vice-versa. This also applies if you are using the deprecated behavior of sending a deferred response and ...

chilly siloBOT
#

Do you have any code to reproduce in which the initial response should be ephemeral but is not? The curl command in the description just seems to be for the followup, which seems to work properly.

If you are using a deferred response (type 5) then the initial deferred response must be ephemeral; public messages (including public loading messages) cannot be edited to ephemeral, and vice-versa. This also applies if you are using the deprecated behavior of sending a deferred respons...

#

You have a full 5 seconds to make a decision about whether it needs to be ephemeral or not..
However, if that isn't good enough:

You could set the initial response as deferred and ephemeral.
Then, if you wanted the follow up content to remain ephemeral, you just send the follow up content.

If you want to break out of it being ephemeral for everyone to see then send the initial follow up content and send an additional message to the webhook with ephemeral: false

chilly siloBOT
chilly siloBOT
#

Description
I go to add a new Redirect URI to my list on my application 'http://127.0.0.1:5500/callback.html' and the site gives the following error: "You provided an invalid redirect URI." Adding these types of URIs have worked in the past and I have verified that the URI is correct.

Steps to Reproduce

  1. Click 'Add Another'
  2. Type 'http://127.0.0.1:5500/rust5x/getkit.html' into field.
  3. Click 'Save Changes'
  4. Error

Expected Behavior
Accepting the new U...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

As the title says, slash commands that has a type 3 required ApplicationCommandOption and has nothing inputted in the prompt is accepted. However, it shows an ephemeral response stating that the interaction failed.

I tried doing this on a browser app and this time, it showed me an error saying that I need to fill up the option. I have a feeling this is a bug since both platforms don't have the same result.

Steps to Reproduce

  1. Have a slash command that has an ...
chilly siloBOT
chilly siloBOT
#

Description

When experimenting with interactions, I found I was unable to send ephemeral messages as a first followup message to a deferred response, but it works properly as a second message to a deferred response (image 1).

I'm able to send an ephemeral message as the initial response to an interaction (image 2), but doing this doesn't give me a message payload back, which is an issue for my usecase.

I've only tested this with interactions over the gateway, but I don't imag...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

For me, I don't think users should know that required options have to first. I mean, in the client, the optional slash command options are showed last. That said, I don't think this will really be needed.

So far, I haven't experienced anything that would need required options to be in the lead.

You are wrong ; if you pass required options before an optional option it will throw an error. I think that it is important to mention it in the documentation

chilly siloBOT
#

For me, I don't think users should know that required options have to first. I mean, in the client, the optional slash command options are showed last. That said, I don't think this will really be needed.
So far, I haven't experienced anything that would need required options to be in the lead.

You are wrong ; if you pass required options before an optional option it will throw an error. I think that it is important to mention it in the documentation

Oh, I didn't know that....

chilly siloBOT
chilly siloBOT
#

Description
When using a self-bot, message.content and message.embeds are both empty. This does not occur on a real bot. I can still view information such as message.author.id, etc.

Steps to Reproduce

  1. Run a simple bot with a user token.
  2. Add the on_message event.
  3. Add a command or some sort of response to a message, or just print(message.content)

Expected Behavior
It responds/prints message.content

Current Behavior
`message.con...

chilly siloBOT
#
  • Moves application object and current application endpoint to a new Application page
  • Documents Application Asset Object
  • Documents /applications/:id/rpc
  • Documents /oauth2/applications/:id/assets
  • Fixes cover_image description
  • Documents application cover cdn endpoint
  • Updated all the links to the application object; a lot of them were already broken anyway

Notes

  • Kept the application bot_ properties listed as non-optional and documented the .../rpc endpoint as re...
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

How will this field work around slash command follow up messages; will the pseudo-webhooks for slash commands which were executed in a thread be tied to the thread specifically or would follow up messages go to the parent channel unless this is provided and will slash commands executed in a channel which has threads be able/allowed to post follow up messages in threads within the channel it was executed in?

chilly siloBOT
#

There is no standardised way to pass query string parameters. While to some people the value might be obvious, I think it's good to document what is considered valid as a boolean parameter. That way there's no ambiguity. Some libraries such as yarl don't support booleans and their encoding must be explicitly done by the API consumer. This confusion is also present in some StackOverflow questions ([1](https://stackoverflow....

chilly siloBOT
chilly siloBOT
#

Description

Add for example in the Dashboard the ability to customize the interaction failed message. This can allow developers to provide more information or provide links where the user can get help.

Why This is Needed

Currently the "This Interaction failed" message isn't that helpful and can confuse inexperienced members. It would be helpful to answer the question why this is so.

Also for planed maintenance or downtimes this can be helpful to notify the user.

**Alternatives Co...

chilly siloBOT
#

Description
When you are typing a command and tap on a MENTIONABLE (type 9) option, the app crashes

Steps to Reproduce
Type a command with a MENTIONABLE option
Tap the name of the option

Expected Behavior
It shows users and roles, and you can select one and use the command normally

Current Behavior
The app crashes

Screenshots/Videos
https://user-images.githubusercontent.com/11778454/117086631-fad88b00-ad01-11eb-8dde-3652fe409ce2.mp4
![image](https://...

#

While testing this it didn't crash, but I noticed strange behavior on android

Description
MENTIONABLE (type 9) option shows users, channels, and emojis instead of users, and roles

Steps to Reproduce
Type a command with a MENTIONABLE option
Type a user, role, channel, or emoji

Expected Behavior
It shows users and roles, and you can select one and use the command normally

Current Behavior
It shows users, channels, and emojis

Screenshots/Videos
https://cd...

chilly siloBOT
chilly siloBOT
#

Description

Even with a correct request, the /oauth2/@me route 401s on canary.discord.com or when routed to the canary API with the header.

Reporting now so it will hopefully be fixed before it reaches prod

Steps to Reproduce

  1. make a working request to /oauth2/@me using a bearer token, on https://discord.com/api/v9
  2. switch to https://canary.discord.com/api/v9

Expected Behavior

It still works properly, returning the same response

Current Behavior

...

chilly siloBOT
#

Image of the application AniFarm is not showing
image

I have created a application approximately 2 months ago. At that time I have uploaded a image for the application and it was there and was showing when someone tried to add the bot.

But suddenly/recently from 2 of this month it just disappeared. I tried reuploading it (2 times today and one time yesturday) still i...

chilly siloBOT
chilly siloBOT
#

This won't be of much importance but it would be good if the version in the sample query-string is v9, since it's already released. But, threads haven't been shipped yet so it's no use yet. Nonetheless, it's still a good practice to be up-to-date.

Another thing about this commit is adding the info of the intent calculators, since the docs doesn't have any content telling users about them. Lastly, this edits the statement about intents being required.

chilly siloBOT
#

Description

Hello ๐Ÿ‘‹

I am hoping to request the addition of a new request to be sent whenever a guild/server adds the slash application(non-bot).

Why This is Needed

I was looking to somehow determine when the application is invited, so I could register all the guild-specific commands for them because at first these would not exist.

Alternatives Considered

  • /register global command to enable guild commands. However, i feel thats a bit worse UX ...
chilly siloBOT
chilly siloBOT
#

Description
When you want to whitelist someone to your app in order to test the rpc scopes on that user, you can add the user on the developer portal, but the user is unable to actually add him/her into the app whitelist without api hacks.

Steps to Reproduce

  1. Add someone to your app whitelist
  2. Have the user click the accept invite button, and watch them get sent into the web client directly without accepting the invite.

Expected Behavior
The user should be ...

chilly siloBOT
chilly siloBOT
#

Description

Add the ability for the user who used a slash command to edit the interaction after the bot responds, like editing a normal message. The bot would see it as a normal command interaction, but the response would just edit the previous interaction message.

Why This is Needed

Many bots allow editing messages to edit their response for message-based commands. However, to provide an optimal UX for this (editing the bot's original response), the bot has to cache the connecte...

chilly siloBOT
#

Many bots allow editing messages to edit their response for message-based commands.

In my experience this is not that common. I'm not sure I think it's good UX either. With the bots that do this you can get a lot of extraneous responses from 1 message that's been continuously edited. I'm not sure how it'll work here when you continuously edit in valid command invocations. If the original message is edited then how does it work when one command goes from public to ephemeral? Would that be...

chilly siloBOT
#

Description

API provides incorrect ratelimit headers on reaction add endpoint.

Steps to Reproduce

  1. Add a reaction, and read the ratelimit headers that are returned.
  2. Add a second reaction after the first reaction, while making sure to follow the ratelimit as per the returned headers.
  3. Watch as you get a 429 error.

Expected Behavior

Get correct ratelimit information from the API. Be able to know when not to send a request, as to not get ratelimited.

**Curr...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

I experience similar issues with my bot which isn't using slash commands yet. People fail using commands eg. having a typo. They try to edit but of course nothing happens so they copy paste it. With my latest iteration of my bot I also invoke commands on edit.

Now with slash commands you won't have such issues. Users can't make typos because the command autocompletes. You can accidentally can invoke a wrong command (with wrongs args), but that shouldn't be that common.

I think implementing...

chilly siloBOT
#

Description
I'm developing a simple app that uses RPC. I use AUTHORIZE, the user authorizes, and it returns a code. According to the documentation, I need to call /api/oauth2/token which requires a client_secret. For obvious reasons, I don't want to put the client_secret in the app's code.

Why This is Needed
To have simple apps not require backends for using RPC

Alternatives Considered
Coding a backend that redirects to the application

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

Using Emojis in bot commands might be a stylistic choice of some developers. When I wrote a bot that took an animal as a choice argument, I wanted to decorate all choices with an emoji representing the animal. However, when I select any option with an emoji, the command is highlighted in red and cannot be sent. This is probably because Discord converts the code point into a Discord emoji (like "๐Ÿฏ" becomes ":tiger:"). When I replaced the emoji in my choices with Discor...

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

Description

This only seems to be happening in our server. On the last few messages, one of two reactions that are present on the messages can be incremented/decremented, but the other of the two cannot be interacted with as the API rejects your request with a 403. The faulty reaction is likely to be the right most one, and is likely to not have a reaction count higher than 1. If not, try the other one.

Steps to Reproduce

  1. Join or be present in the Rythm support server.
    2....
chilly siloBOT
chilly siloBOT
#

Now presenting the sequel to Stage channels documentation, Stage instances!
Will sporadically read and address comments until the workweek begins on Monday. Then will be more active ๐Ÿ‘€.

Summary

Status: APIs are already available.

While developing, you may notice some more fields than what are documented. This is because we're still working on this stuff right now. We'll be incrementally documenting more and more fields as they become finalized and production ready. **Please ign...

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

The regex for the name of a slash command (ApplicationCommand.name) was invalidated after a recent change (circa 2021-05-08) that stopped implicit lower-casing of command names. The API will only accept lowercased names. The regexp ^[a-z0-9-]{1,32}$ describes this.

Specifically:

  • ^[a-z0-9-]{1,32}$ describes lowercase (Latin characters only) vs. the previous ^[\w-]{1,32}$
  • Discussed in the Discord Developers server - around message ID `https://discord.com/channels/61342564868...
#

That makes sense - hence my comment w.r.t. non-Latin characters. My concern with saying lowercase but not providing the regexp for it is that users tend to rely on the regexp, and so making it "copy paste" is likely a slightly better dev. experience.

Since \w is typically equivalent to [A-Za-z0-9_] in many regexp engines, ^[\p{Ll}\p{N}_-]{1,32}$ is likely the right replacement here.

Thoughts?

chilly siloBOT
#

Ur webhook is not completed

On Sun., May 9, 2021, 6:27 a.m. Justin, @.***> wrote:

will u give me permisson to look at the file with ur licence? I want only
u to be responsible for it. But i'll see what wrong.

This is completely unrelated, a license won't be needed in order to see
how to fix the bug. And it was clearly said what the bug was.

โ€”
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/discord/di...

#

U asked for advice not for free work. Be happy about that.

On Sun., May 9, 2021, 8:48 a.m. Maximus Arillious, @.***>
wrote:

Ur webhook is not completed

On Sun., May 9, 2021, 6:27 a.m. Justin, @.***> wrote:

will u give me permisson to look at the file with ur licence? I want only
u to be responsible for it. But i'll see what wrong.

This is completely unrelated, a license won't be needed in order to see
how to fix the bug. And it was clearly said what the bu...

#

Try and get the Return of the webhook object id. Well check all the webhooks for errors. Thats probably what it is now that i'm veiwing it. Recode it and test it

Markusnarillious thanks for your concern but I don't understand what webhook thing you are talking about can you elaborate what webhook you are talking about.
It was just a manual upload of image from the developers portal and for some reason https://user-images.githubusercontent.com/69100224/117160739-0057d300-addf-11eb-9276-...

#

Its not showing a portion of of to be displayed . ifvthe person can run a
renderind mode of cpu and script recoding it and send it to me i can review
Nd properly examine the file but will not touch its coding. I can only
provide advice based what i've examined. And if the person is also lying it
be more of a waste of time.

On Sun., May 9, 2021, 9:11 a.m. Bartick Maiti, @.***>
wrote:

Try and get the Return of the webhook object id. Well check all the
webhooks for errors. Thats prob...

#

If its not the webhook. Look at how ur coding input is. Did u place the
proper keys and place,is it the right frame for the request.

On Sun., May 9, 2021, 9:17 a.m. Maximus Arillious, @.***>
wrote:

Its not showing a portion of of to be displayed . ifvthe person can run a
renderind mode of cpu and script recoding it and send it to me i can review
Nd properly examine the file but will not touch its coding. I can only
provide advice based what i've examined. And if the person is ...

#

If its not the webhook. Look at how ur coding input is. Did u place the proper keys and place,is it the right frame for the request. On Sun., May 9, 2021, 9:17 a.m. Maximus Arillious, @.***> wrote:

Well I looked though it again. I guess you mean my application page is having problem because of how I have coded?

I am using discord.py and also I am not using anything that can change the image of the the application of from the bots code.
So its pretty hard for my how can a manual...

#

Idk anymore work requires payment and time. I'm just some random trolling
around high as hell on illicit substances laughing away at the wall. Your
educated right. Well why dont u fix it. Shits not free.

On Sun., May 9, 2021, 9:33 a.m. Bartick Maiti, @.***>
wrote:

If its not the webhook. Look at how ur coding input is. Did u place the
proper keys and place,is it the right frame for the request. On Sun., May
9, 2021, 9:17 a.m. Maximus Arillious, @.***> wrote:

Well I looked ...

#

Learn to analyze the whole thing. Start to finish. What dobu want a "sudden
wild WidowMaker appeared"

On Sun., May 9, 2021, 9:39 a.m. Maximus Arillious, @.***>
wrote:

Idk anymore work requires payment and time. I'm just some random trolling
around high as hell on illicit substances laughing away at the wall. Your
educated right. Well why dont u fix it. Shits not free.

On Sun., May 9, 2021, 9:33 a.m. Bartick Maiti, @.***>
wrote:

If its not the webhook. Look at ho...

#

Idk man leave me alone. Im from the 9ps man not a milenial

On Sun., May 9, 2021, 9:41 a.m. Maximus Arillious, @.***>
wrote:

Learn to analyze the whole thing. Start to finish. What dobu want a
"sudden wild WidowMaker appeared"

On Sun., May 9, 2021, 9:39 a.m. Maximus Arillious, @.***>
wrote:

Idk anymore work requires payment and time. I'm just some random trolling
around high as hell on illicit substances laughing away at the wall. Your
educated right. Well wh...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Note my earlier comment re: a-z0-9 being potentially too restrictive when
considering non-Latin characters.

(An authoritative version of the server side validation would be useful
here)

On Sun, May 9, 2021 at 11:25 AM cmsteffey @.***> wrote:

@.**** commented on this pull request.

In docs/interactions/Slash_Commands.md
https://github.com/discord/discord-api-docs/pull/2901#discussion_r628925716
:

@@ -682,11 +684,11 @@ Create a ne...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Unfortunately there's not much we can do to fix it at this time
@jhgg is there any chance the behaviour of endpoints with this kind of behaviour could be changed in a future REST API version to account for these cases? Maybe switching to a 202 response while spawning a background task to handle the operations which are causing execution to take so long in some cases.

chilly siloBOT
chilly siloBOT
#

Description

You can't add users to a channel when you don't have manage roles as permission overwrite in the channel.

Steps to Reproduce

Give a role manage role permissions server-wide, create a text channel, and don't set permission overwrite for it

Expected Behavior

User should be able to manage channel's permissions and add new users to the channel

Current Behavior

The user doesn't get added to a channel because of the missing permissions error

**Scr...

chilly siloBOT
#

Description

Ability to request sensitive(oauth scoped) data via Slash Commands. "User Connections" or email are good examples of such data.

Possible Implementation. Usecase 1 (Request is optional)

  1. Bot sends message: TLDR... cool event for users from Twitch, use /sign_up command to take part
  2. User uses command; Interaction goes to Bot via gateway/webhook
  3. Bot (e.g. AWS Lambda) determines if user's connections already contains in Database. (Depending on the case resul...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

The options selection interface does not display the full list of options if there are more than 10 options.

Steps to Reproduce

Just create more than 10 options.

Expected Behavior

It would be nice to add some kind of scroll so that the user can scroll through the list.

Current Behavior

Now, to see other options, you need to start typing certain characters, but this is inconvenient. Imagine you have the following options:

  • Book green
    ...
chilly siloBOT
chilly siloBOT
#

I'm not able to reproduce this issue with your application's assets. My guess is that during an outage with our media proxy a bad version of your application icon may have been cached at certain sizes. It will likely be fixed as the caches expire, but there's no immediate fix I can offer. You could change the image and reupload it to force a new icon. Re-uploading the same icon does not fix the issue since assets are stored by hash.

chilly siloBOT
#

Your videos doesn't show the full scope of what permissions you currently have versus what is being applied. In general the API behavior is tested and working as intended. You can only grant permissions you yourself have as overwrites in a channel. Managing channel permissions requires Manage Roles on the server level, but also not denied on the channel level.

This appears like a bug in the new channel permissions UI, and could be reported via our Discord Testers community: https://discord...

#

You can only grant permissions you yourself have as overwrites in a channel.

@night According to the docs, having it on the guild is enough:

Only permissions your bot has in the guild or channel can be allowed/denied (unless your bot has a MANAGE_ROLES overwrite in the channel)

So are the docs and the client wrong about that?

#

oh I think i misread it and thought it said he needs the permission to be allowed for himself as an overwrite in the channel; however, in this case, Moksej has the Website Moderators role which gives View Channel for the channel:
image

If he didn't have View Channel then he would not have been able to get to this screen in the first place.

As shown in the video, he is adding a new ...

chilly siloBOT
#

\w expands to the Unicode spec's definition of [\p{alpha}\p{gc=Mark}\p{digit} \p{gc=Connector_Punctuation}\p{Join_Control}] in at least C#, Python, Perl, and Rust.

Note how this expansion is different than any of the regex being proposed here -- and that's because \p{Ll} and friends exclude things from other categories like \p{Lo} (which includes CJK characters) and the word separators such as _.

I think if you wanted to change this you m...

#

I think if you wanted to change this you might be better off keeping the \w and just mentioning that they have to be lower case.

This is what the latest commit (3eea655) does, which likely makes the regex pattern more obvious to many developers not familiar with extended Unicode tables ๐Ÿ˜‰

However, this restriction doesn't make sense to me and is mostly anglocentric since most languages do not distinguish from casing and the casing rules can be surprising (certain German and Turkis...

chilly siloBOT
#

Description

The introduction of Slash Command Permissions #2737 brought user and role based permissions. However, the only way to currently achieve channel-specific granularity is to sacrifice a role to a specific command.

You can do this by using a channel override for that role that has use slash commands and adding that role to be the only allowed users of that command through [application command permissions](https://discord.com/developers/docs/interactions/slash-commands#app...

chilly siloBOT
#

Possibly java script

On Mon., May 10, 2021, 2:39 p.m. Zack, @.***> wrote:

I'm not able to reproduce this issue with your application's assets. My
guess is that during an outage with our media proxy a bad version of your
application icon may have been cached at certain sizes. It will likely be
fixed as the caches expire, but there's no immediate fix I can offer. You
could change the image and reupload it to force a new icon. Re-uploading
the same icon does not fix the issue...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Can only agree with the people who commented before me. I know that the original issue is for ARM on Windows but now that Apple Silicon is in everyone's hands we really need an ARM Build for OSX. The number of users I can only tell "I can't help you because Discord doesn't support Apple Silicon at the moment" is increasing every day.

Is it possible to revisit this proposal in the light of M1?

chilly siloBOT
#

Description
It would be nice - especially for bot devs - to be sent an array of emojis that are contained in a particular message, just as other content such as users, roles, and channels are.

Why This is Needed
Both for moderation and utility; while custom emojis can simply be regexed out of a message, doing such can lead to complications, as well as the oversight when it comes to non-custom emojis, which get sent as unicode characters (AFAIK). You could regex for unicode emo...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

Message Reactions can be magically removed by spamming them multiple times for a few seconds.

Steps to Reproduce

  • Have a message with Message Reactions (Works best if there is only one reaction)
  • Spam the reactions. Click each one repeatedly
  • Watch them disappear one by one after a few seconds

Expected Behavior

The reactions should not disappear

Current Behavior

All reactions will disappear from the message completely

**Screenshots/Vide...

chilly siloBOT
chilly siloBOT
#

This is not really a bug, so I've reclassified this as a feature request. We intentionally cache these assets heavily. It's possible down the road we will change/improve this behavior.

what? No this is entirely a bug. Its not that the assets dont update night... its that they dont appear at all when you first upload. How can you cache "nothingness"?

This use to behave just fine. Something has changed along the line and broken the application page.

chilly siloBOT
#

I did the maths and what i do for my discord bot is host it on heroku up to 18hours a day and you are left with around 50hours at the end of the month. If it is only for a few servers, you can get away with running it on heroku for most of the day and host it on your computer for the other hours. It also means that if someone tries to dos the bot with either spamming commands or causing a stack overflow (happened when i didnโ€™t use a generator on an object but used a tuple) it will auto restar...

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

I can provide some further insight to this.

The reaction still exists on the API, and is shown through the /channels/:id/messages/:id/reactions/:emoji endpoint:

curl -H 'Authorization: Bot ...' https://discord.com/api/v8/channels/xxx/messages/yyy/reactions/๐Ÿ“ฉ
[{"id": "508391840525975553", "username": "Tickets", "avatar": "c0326f3eb3834f19d41fa1be61a99615", "discriminator": "6981", "public_flags": 65536, "bot": true}]

However, the reaction doesn't show on the get message...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

The permissions option need 3 additions:

  • Hidden option which completely removes the command from the command selection (instead of grey it out)
  • Option to globally hide/show members by id (instead of doing it per guild)
  • Option to (globally) show/hide a command by Discord guild permission (eg. on all servers where ppl. got "Manage Server" they allowed using command x

Why This is Needed

While implementing permissions into my bot I encountered multiple prob...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

The gateway is closing my session with code 1000. Checking flowchart / asking others, this seems to be about a heartbeat time out... funnily enough, it closes with a 1000 right after receiving a heartbeat? A heartbeat it's been receiving fine for 2 hours?

Steps to Reproduce

https://gist.github.com/A5rocks/87c158c78f6ee870549ab5fbf2c134ed (code has been trimmed, but still repros this).

Expected Behavior

It doesn't close with code 1000 (which seems to toss...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

The webhook endpoints which take a webhook token in their path seem to error when a malformed token with a similar structure to integration tokens except with a different length is passed.

Steps to Reproduce

  1. Get a token with a similar structure to the tokens seen on interactions except with a different length (e.g. `aW50ZXJhY3Rpb246ODQyNTMyNzY1MjIzODc4NjY2OnJlUXlVMFp0VnVIOWZ3dGdOU21KcTc4OTdad2ZhOWp3WndSc3dEQ1ZRN0hjQW83TVE3NlJibTRsUE9qRHRyMWFESGVSRXNvZ29odXNOd0J...
chilly siloBOT
chilly siloBOT
#

Description
Well with the atrocious new look for discord I think we need more themes. Mainly because the new blurple is wayyy to bright on hdr monitors/tvs and no one should have to:

  1. Turn down the monitor
  2. turn off hdr
  3. get special glasses

Why This is Needed

  1. For people with hdr screens this is too bright (for dark mode users)
  2. Too bright for people with eye problems

Alternatives Considered

One alternative is breaking the tos and using better di...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Settings : -> Category ('Community settings')

Selecting a tab (like the rules and guidelines) and clicking the cersor button (middle mouse button) will bug and your cersor will never dissapear. You wont be able to exit the tab or even scroll down (despite moving the cersor)
For now only way to fix it is by killing discord task on task bar.

#

The most useful part of this would be unicode emojis, which are otherwise extremely hard to parse, especially if you're trying to get them in every message as they don't have pretty easy to identify markings; a message can only contain emojis if they also have a colon but this isn't the case for unicode emojis

Gah. GH Mobile is not your friend. Anyway this was also partially why I opened the issue to begin with frankly. Regexing Unicode emojis is possible, but is an absolute nightmare to l...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description
Add a new permission called USE_STICKERS (or something similar)

Why This is Needed
With the new announcement that people can create stickers in servers that have level 1+ (whenever that is fully out)

seen in this announcement

This brings up a whole lot of issues.

  1. There is no way to disable stickers in server channels.
  2. This will lead to abuse, and sending inappropriate/gore/nsfw stickers from one server to anoth...
chilly siloBOT
#

Status: Should be already available.

The promised Gateway docs. I don't think there's anything fancy about this, it's just piping Stage instances in through the gateway.

I plan to merge this in tomorrow-ish, giving a chance for anyone to ask questions or raise concerns in case I missed something disasterous.

The TL; DR is:

  • Stage instances piped in through the guild object on GUILD_CREATE.
  • Stage instance CRUD events piped in afterwards.
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

Add a specifier to an incoming Command Interaction, indicating if it concerns a global or a guild specified command

Why This is Needed
A separate command handler from the guild based one could be helpful, especially when dealing with common executions for global commands in guilds and DMs.
Until now, the only way to achieve this is by forcing developers to keep track and manually separate global and guild based registered commands

chilly siloBOT
chilly siloBOT
#

i have updated my discord recently and after update i noticed that i am unable to join voice channels, i gave all permissions in settings too for discord app. if i use discord in chrome the audio works fine but i am unable to join voice chat in app.

it was working fine before , i got this issue after update..is there anyway that i can downgrade or previous version because its really annoying.

phone - samsung
model -galaxy j7

i got an old phone if that issue is due to old phone does...

chilly siloBOT
chilly siloBOT
#

It's a possibility. Having a separate property has a few advantages
Marking a command as NSFW with a field:

  1. doesn't require user interaction
  2. allows Discord to hide it from users <18, even if the command is invoked in a public channel or...
  3. allows Discord to only show the command in NSFW channels
  4. allows Discord to add a flair to the command

There is a reason channels must be marked NSFW, and I believe the same for NSFW commands (since not every command name could imply its...

chilly siloBOT
#

I know this is more than an API change, but I want to throw it in here anyway as an idea

Description
With more rich elements for bots coming up I came with this idea to manage bots/integrations.

The integrations page is now mainly used to see what integrations are in a guild and what they do. The idea is that developers can setup a 'settings section' for their integrations. See picture below for reference:

![image](https://user-images.githubusercontent.com/10338882/118362744-0d...

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

i agree and see this as a problem too
it's just annoying having to wait several minutes before being able to use assets although you can live with it in my opinion

it's more of an issue for new developers as there is no indication why or how long assets will be missing. This results in uploading the same asset multiple times and having to delete the extra ones afterwards. But if you delete one too much you'll have to upload and wait again...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

This option would be in the discord server settings in the role tab. It would add a button with the inscription "Add prefix" which would make that next to the button there would be a place to enter text in which you would enter a short text that would be a prefix of the role, i.e. next to your nickname on the discord (on the server where it was set) there would be a role prefix to make it easier to distinguish between discord members. The prefix back with a nickname would look like [Prefix] N...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Hey, I'm not sure what's happening now but there's a different bug now. The old reactions are broken as you said was normal but new messages' reactions tend to just disappear. It seems to me that it disappears for you if another user touches the reactions. I'd also like to mention that when a user reacts to their own message, one of our bots will remove that reaction. On the user's end, nothing visually happens while on an observer's end all reactions for that emoji disappear.
Maybe you can f...

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

Same issue also on me. Seems like the deploy (?) didn't fixed it. Reactions are starting to disappear or aren't reactable anymore after deactivating the add reaction permission and waiting for a 30 minutes (in my situation). The message got created 10 days ago... users start complaining now again about the issue.

Guild: 394807885881933824
Channel: 564075573165424651
Message: 840654241516486707

should have โŽโœ…๐Ÿ”

chilly siloBOT
#

@lytefast I think it seems to fix itself after a while? It's most easily reproducable with new messages. Here's a better GIF we recorded for you guys. If you need to come test it in that specific channel by posting a message yourself feel free to, just contact us with an account that is verifiably you/a discord staff account and we'll grant you the permissions to post messages there. I'm sort of clueless as to what's going on exactly.

image

chilly siloBOT
#

Description
typing 'application.' triggers slash command auto-complete

Steps to Reproduce
type application. in the message box

Expected Behavior
the slash command list will not show up and discord will treat the text in your current message box like any other un-sent text message

Current Behavior

Screenshots/Videos

Client and System Information
Stable 85172 (99bc85a)
OS X 10.15.6
Web client, Safari

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

I found the bug, and working to deploy fix:

For duplicate delete requests (which can happen due to races in spam/retry actions) we were sending down gateway events for the same user down to the clients.

This is an issue because the clients don't have the full context to make a distinction on whether the user_id
sent from the dispatch is already accounted for (removed).
Clients simply check if the user_id == me.id and if not decrement.

Use case

  1. A + B both react with :+1: ...
chilly siloBOT
#

Description
Occasionally (it seems to vary from person to person) opening a DM (be it a brand new DM or with a friend), trying to check mutual servers with someone (either at the top of a DM or by clicking their profile) will return "No Mutual Servers." even if you do share a guild with the person. A quick inspection at network activity reveals the API returns a 429 (Too Many Requests), with seemingly no indication that ratelimits are being encroached beforehand.

*Steps to Reproduce...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Seems like the bug with disappearing reactions is fixed, but 403 Missing Permissions on existing reactions isn't fixed yet, as stated here: #2896 (comment)
Got thrown again some minutes ago.

EDIT: seems that users aren't able to react on โŽ only, which is currently the last element returned in the reactions array (?)

See https://github.com/discord/discord-api-docs/issues/2896#issuecomment-842592704...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

@BanTheNons Not true. Spoke to a Trust and Safety employee about dis. The badge will be available this Friday after taking a different exam separate from DMA. Passing users will be given this badge.

Erica, Rythm Admin

Cannot wait for the new badge to come out. This information from Erica is valid and has come with proper authorisation.

Panley
my moto is all I care is flexing my user to server ratio
get linked

imagine spending your time badly impersonating other p...

#

Description

POSTing to /stage-instances a channel_id that already has an associated stage instance creates a new stage instance object with a unique ID, as well as dispatching the STAGE_INSTANCE_CREATE event. This seems peculiar as it may lead to accidental inconsistencies in cache since the ID is always unique.

Steps to Reproduce

Request POST /api/v9/stage-instances {"channel_id": 123456789, "topic": "test"} more than once.

The requests do not need to be done i...

#

@BanTheNons Not true. Spoke to a Trust and Safety employee about dis. The badge will be available this Friday after taking a different exam separate from DMA. Passing users will be given this badge.
Erica, Rythm Admin

Cannot wait for the new badge to come out. This information from Erica is valid and has come with proper authorisation.
Panley
my moto is all I care is flexing my user to server ratio
get linked

imagine spending your time badly imp...

chilly siloBOT
chilly siloBOT
#

Status: Client changes not implemented yet. (No API changes.)

Summary

TL; DR: We want to reduce some footguns we noticed when people become a speaker in stage channels.

We have observed many times for users where they:

  1. Join a stage channel as an audience.
  2. Raise their hand.
  3. Get invited to speak.
  4. Find themselves still muted because Use VAD was turned off for the voice channel.
  5. ...
  6. Awkward silence while people figure things out.

To avoid this situati...

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

@sayantan300 This is due to Cloudfare caching. If you do not specify anything after the name Cloudfare will used the cache file from one of their cache servers. When specifying anything after it (in your case you found out with size, but you can do basically anything, ?nocache for example). Through the following weeks or months, the new avatars should kick in and you will not be seeing any old ones (or sooner if Discord make a hard clear of the cache)

chilly siloBOT
#

Description
The Join Thread and Add Thread Member endpoints' documentation states that the method to use is PUT. However, using this method yields a 405: Method Not Allowed response.

Steps to Reproduce

Create a thread in the client where the bot is not a member yet. As the bot, send a PUT request to /channels/{thread-id}/thread-members/@me and/or add someone else via channels/{thread-id}/thread-members/{user-id}

Expected Behavior
The method shoul...

chilly siloBOT
chilly siloBOT
#

Description
A sort of follow-up to issue 2410, I was hoping to be able to access and use the interaction response message. I am able to use the webhooks/${webhook.id}/${interaction.token}/messages/@original endpoint to acquire the message, but there are no message methods on the returned message object. For my use case, I was hoping to attach a reactionCollector to the message, which would need either the createReactionColl...

#

You can use the message like any other message object, but createReactionCollector and awaitReactions are not API concepts. If you're using discord.js, you can ask in the discord.js server to learn how to use those features with interaction response messages (it is possible).

(but just FYI, buttons are releasing next week and those might solve your use case better than reactions)

chilly siloBOT
chilly siloBOT
#

We block connections to hetzner due to their overzealous automated IDS system spamming our hosting providers with abuse e-mails. We have no plans to unblock them, as they have no plans to fix their broken system.

I felt over this reply, as I've just got the issue on a OVH dedicated server, with a german IP.
Is it the same thing for OVH, or is it a region thing? ๐Ÿค”

chilly siloBOT
#

Description
As I understand the current API behaviour, you can set the default_permission for a command to true or false, then override this using the Edit Application Command Permissions in the following ways

  • If default_permission: false, you can grant access to individuals or roles by setting ApplicationCommandPermissions#permission: true
  • If default_permission: true, you can block access to individuals or roles by setting by setting `ApplicationCommandPermissi...
chilly siloBOT
#

I have to comment on this, but why is the order the way it is? Wouldn't it have made more sense to have the levels and corresponding values sorted from least to most NSFW here?

Like (Assuming this order is right... Can't tell which is more NSFW of Explicit and age_restricted) having the order SAFE, DEFAULT (Is this higher than safe?), AGE_RESTRICTED, EXPLICIT would've made more sense since now Safe is between two NSFW ratings, which is weird from a design perspective.

But again ...

chilly siloBOT
#

Yeah this is needed. It's a duplicate, but the other thread has a different original topic and the discussion is not about the awareness of the user's boosts, only the total count of the server itself. Being able to see if a user has 1 boosts or 2, is totally integral to us using this pay-for-privilege system discord has implemented. We want to help discord make money, let us see this info!

#

chiefly the "Gift Nitro" feature which Discord feels is so important that it needs a button directly next to the file/image upload button in the mobile app UI

Gifts should also be user specific, and users should be able to disable gift reception, without the gifter knowing.

Those are all valid opinions; however, our point is that you should voice them in a relevant discussion, or create one if there's not one already.

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Yalvarฤฑrฤฑm kardeลŸim, kรถtรผ gรถrรผndรผฤŸรผmรผz iรงin biz Tรผrkleri durdurun. senin gibi insanlar bizi kรถtรผ insanlar gibi gรถsteriyor. kes ลŸunu.
ร–nce nitro dolandฤฑrฤฑcฤฑlฤฑฤŸฤฑ, Tรผrkler rozet iรงin bot yaratฤฑyor, bunlarฤฑn hepsi bizi kรถtรผ gรถsteriyor. bu iลŸe yaramaz yorum erkinalp ile lรผtfen durun.

chilly siloBOT
chilly siloBOT
#

Description
Allow us to define maximum and minimum values for integer options. The number that the executor then returns must be in the range of the specified max and min values.

Why This is Needed
Example: A volume command for music bots. This would allow users to select a volume between 0 and 200 only.

Alternatives Considered
Use choices, but they are limited to 25 so ranges would be nice.

chilly siloBOT
#

Guys, stop bumping this issue thread it's just making this re-appear as a new notification for everyone else watching.
Things like these take time, considering the priorities of the developers and scale of the API it will most likely be a while before such a feature could possibly be added. I too am waiting but I respect the devs taking their time to focus on other things first.

#

The issue is closed, there is no point in posting here at all. It's CLOSED, meaning, it's no one looking at it, or an identical existing issue exists.

Besides; it's quite normal to "bump" issues saying you want a feature, it's one of the ways devs know what feature to prioritize. But bumping a closed issue will do nothing.

chilly siloBOT
#

Description

Right now, interactions and webhooks can send multiple embeds in their messages. Bots are limited to sending a single embed per message and this is an inconsistency that should be resolved. Please change the embed field to embeds in Create Message.

Why This is Needed

The API should be consistent and accept the same message fields for all message endpoints. This is also very annoy...

chilly siloBOT
#

Description
Non-GIF emotes sent from webhooks with "a:" format (which indicates that it's animated), returns ERROR IMAGE and breaks scrolling on reply

Steps to Reproduce

  1. Create server, create a webhook and copy webhook URL into https://reqbin.com/ and make a "POST" request
  2. Get the Emote ID and Syntax from the non-gif emote
  3. At "Content" tab on reqbin, choose JSON, inside of it copy paste: {"content": "Replace this with emote ID syntax "} and hit "Send"
    You can use thi...
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description
If a bot do not have an applications avatar the slash command item chooser should then default to the bot icon. Lots of Turkish developers are confused why it show defaulted discord logo icon. It shall default to the bot icon if no applications logo is set. It is not very clear for developers.

Why This is Needed
This would make it easier and less confusiones for developers about why it have default one.

chilly siloBOT
#

It should be possible to at least fetch an ephemeral reply.

POST /interactions/<interaction_id>/<interaction_token>/callback always returns a 204, ideally this would just return the Message object to us like POST /channels/<channel_id>/messages does, but that isn't the case currently.

For a regular response you can instead use GET /webhooks/<application_id>/<interaction_token>/messages/@original to fetch it, but this doesn't work for ephemeral messages - the API will return `Disco...

chilly siloBOT
#

Description

The API POST https://discord.com/api/v6/lobbies/search documentation states that for the filter field, it expects a SearchFilter object, whereas it actually expects a SearchFilter array.

The issue is the same for the sort field, which states it expects a SearchSort object, whereas it actually expects a SearchSort array

Steps to Reproduce

The API can be found at:
https://discord.com/developers/docs/game-sdk/lobbies#create-lobby-search

chilly siloBOT
#

Description

I have created a Discord Bot to manage the creation of Lobbies for my game Sector's Edge. It does this using the /lobbies API as shown here: https://discord.com/developers/docs/game-sdk/lobbies#the-api-way

After creating a lobby with https://discord.com/api/v6/lobbies, a PATCH request to https://discord.com/api/v6/lobbies/ returns the error Code 10031 Unknown Lobby.

Steps to Reproduce

Step 1)
POST to https://discord.com/api/v6/lobbies with the JS...

chilly siloBOT
chilly siloBOT
#

Description

I am using Discord.js to interface with the API, and trying to discriminate which commands can be used in which guilds by reading the guild snowflake in Message.
I am getting an incorrect guild snowflake, for basically every guild my bot has access to.

Steps to Reproduce

I've contacted people from Discord.js directly along with the relevant code snippets to try to reproduce the issue, unsuccessfully.
Only my bot is encountering this issue as far as I know.
...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Command payload:

{
    "name": "test",
    "description": "A test command",
    "default_permission": true
}

Permissions payload:

{
    "id": "12345678987654321", // insert your own role ID here
    "type": 1,
    "permission": true
}

From my testing, this will cause the command to appear unavailable to users who do not have the "12345678987654321" Role. The command is unselectable, but will still function if manually typed.

chilly siloBOT
#

Description
A Guild Member Leave event is emitted when a user leaves a server from preview mode.

Steps to Reproduce

  • Join a server in preview/lurker mode.
  • Click away to leave without fully joining.
  • A Guild Member Leave event is emitted, even though they weren't a member and there was no corresponding Guild Member Add event.

Expected Behaviour
No event is emitted when leaving a server from preview mode.

Current Behaviour
A Guild Member Leave event is emitted.

chilly siloBOT
chilly siloBOT
#

Description
This feature should allow users to enter emojis, like the roles & channels, etc types.

Why This is Needed
This allows users to specify emojis, both custom and default, to be used in interactions. The only current way is using a string argument, and validating it. While this is easy enough for custom emojis, it's trickier for default ones. Other issues in this repo have presented how discord uses a modified version of twemoji 12, and the mobile clients also send some ...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

This also seems to be happening even if the user is banned from the server and is previewing it. (I think that'd be an extension to this issue, and another issue where banned members can preview servers.)

I've been witnessing it in a server that I'm a Community Lead in on several occasions.

We are also having this issue with banned users previewing our server.

chilly siloBOT
chilly siloBOT
#

Description

In some cases, the Embed image isn't visible. From what I know this is caused by a too-short timeout.
This happens when using:

  • Discord attachment proxy links
  • Discord attachment links
  • Custom Links

My assumption: Discord tries to fetch the image. If the timeout is reached no image is shown. This is fine when sending a dead link or a link to a very busy server. In this case, it regularly fails also if sending links of Discord attachments itself (which should be fe...

chilly siloBOT
#

Description
Desktop client cuts off slash command parameters. This is an issue when many parameters are optional and the bot end-user would like to choose one of the parameters "off-screen". The end-user must know to make the Discord window WIDE enough in order to select the parameter they wish to populate. This isn't an issue on mobile (android) as the parameters are 'swipe-able', so scrolling to the parameter the user desires is intuitive.

Steps to Reproduce

create a slash...

#

Description
A slash command with an option of type: 6 fails on mobile (Android) client when the discord user referenced is not in the same channel. The same slash command works fine on desktop client when the discord user referenced isn't in the same channel.

Steps to Reproduce
execute a slash command on desktop that has an option of type 6 while the referenced user is not in the channel. Notice that this succeeds.

now execute the same slash command on mobile (Android)...

chilly siloBOT
#

Description
Add an endpoint that could be used to make bots "play" a game, similar to the gamesdk, with support for timestamps, small and large images, etc.

Why This is Needed
This would allow for more in depth at-a-glance information for users, including things like uptime, help commands, and even allow bots to add buttons linking to things like there help site.

Alternatives Considered

  • Putting information in a "playing" status, however this doesn't allow for dynamicall...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description
The List Active Threads endpoint returns a "404 Not Found" response.

Steps to Reproduce
Perform a GET request to /channels/{channel-id}/threads/active with a valid channel id.

Expected Behavior
It should return the list of active threads.

Current Behavior
It returns an error response of HTTP code 404.

Additional Context
The channel I used (837068144862298163) exists and is accessible to my app, I verified that the ID is correc...

#

These Discord discussions are just graveyards for ideas which should be obvious to a software designer. When Discord is long dead, we'll still be able to come back to these threads and see in clear black-and-white why the company went under.

@akirablaid

Sorry to be that person, but comments like this aren't helpful to anyone. Discord is well-known for actually listening to it's userbase.

May I suggest constructive criticism instead of "this should be obvious". For instance, what do...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

When editing a message, fields such as content can be null to remove them. However, when responding to a component interaction with an InteractionCallbackType of 7 (UpdateMessage), you can't use null to unset fields.

Why This is Needed

This can be useful to edit a message with content into a message with an embed and no content.

Alternatives Considered

An alternative would be to set the content as a zero-width character.

chilly siloBOT
#

we have to solve the virus that circulates, it's called my new Game, When a
person sends it to you it auto-downloads

El vie., 28 may. 2021 7:46, APixel Visuals @.***>
escribiรณ:

Description

When editing a message, fields such as content can be null to remove
them. However, when responding to a component interaction with an
InteractionCallbackType of 7 (UpdateMessage), you can't use null to unset
fields.

Why This is Needed

This can be useful to edit a message wit...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description
Button ephemeral replies are not there when jumping to present

Steps to Reproduce

  1. Send a message with buttons that trigger an ephemeral reply.
  2. Send enough messages after so that you get the "Jump to present" option when viewing the button message. Note: You can also test this on the [DDevs server](#847167520711639040 message)
  3. Click the button to trigger an ephemeral reply. Observe the "New messag...
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

I'm pretty sure I updated all the backlinks? However, I believe this change is necessary for parse-ability reasons (people may expect data structures to all be h6es, but in slash commands they're a mix of h6 and h2....)

Additionally, I updated the warning about webhooks being able to mention everyone. (I am told that that is no longer the case, I may be wrong though).

I really messed up the table formatting, but I'm not sure how they should be formatted :p

chilly siloBOT
chilly siloBOT
#

Let me push this topic once more with a more detailed version of how this could work out.
I actually tried reaching out to Discord through their support to hopefully get ahold of someone from the production team.
Although the support said "Yeah I'll forward this to production", many follow up messages over the last few months were left unresponded.

Please hear me out. I know its a long text

I work in IT security - Specifically E-Mail security, so working against spammers, scammers...

chilly siloBOT
#

In my 4 years on this platform - No one who was harmless ever said the word "buy" in a DM, from a server I NEVER wrote a message on, a person I NEVER spoke to before. EVER. Show me anyone who did. People simply do not do this.

I don't buy it

Unless you perform a moderation role or any other administrative role on a server - If you never send a single message, people don't message you "just to make friends" unless its extremely small and tightly nit communities and those ...

#

On a more serious note, we have no plans to pursue vigilante moderation. If you come across behavior which breaks our TOS, report it to us.

Trust and Safety, according to their own docs cannot perform actions against scammers who wipe their chats. Reports so far have shown no effect as soon as the scammers didn't get the result they wanted, they wiped their chats and their accounts are still actively being used to this day.

#

Trust and Safety, according to their own docs cannot perform actions against scammers who wipe their chats

If the message is reported in-app then it is saved and t&s will be able to see it after it is deleted, for more info see https://dis.gd/dma104

Oh wow. This is something I haven't even be aware of for years.
The first official result I get when googling is this help article (https://support.discord.com/hc/de/articles/360000291932-Einen-Fall-richtig-bei-unserem-Trus...

#

Not to mention that in the alternative case, you just have to make the argument a string and validate it. Being able to reference a message in a command would be extremely valuable:

  • Moderation tools: /report, /delete, /pin, etc.
  • Q&A Helpers: Trigger a search for a topic on your Wiki by replying to someone's message with a /search command.
  • Attachments: A work around for not having an attachment argument type, simply respond to a message with an attachment in it.
  • "Thank you"...
chilly siloBOT
#

Description

Was a discussion in Discord Testers once. The https://discord.com/api/v9/guilds/(guild_id)/templates/(template_code) has a limit of 152133 characters for serialized_source_guild apperantly.

Steps to Reproduce
Try it out with this template https://discord.new/ZXxRx7mP2mRT
then create a channel
then try to save the template

Expected Behavior
More limit increase and more rate limit increase for templates?

Current Behavior
There is a limit

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description
ok so, a new InteractionResponseType to show that the request sent by a button is received by showing a small success line or some pop-up

Why This is Needed
since the buttons don't show if the request sent by them is handled || received, the users keep spamming the button, so to show that their request has been received there can be small tooltip (for desktop toast for phones) or some small success line, like we do in normal prefix commands, popping up would b...

#

I'm against this. The button colours are standard UX buttons that denote primary (blurple), secondary (grey), success (the green one), and failure (the red one). Generally most sites try not to deviate by providing different colours since for the user the colour of the button has some preconceived context in what the button does. Deviating from this doesn't seem ideal, though developers can (and probably will) misuse the colours for their own purpose.

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description
It would be great to be able to align buttons based on a certain width (maybe the upper action row's) without only depending on the text content.

Why This is Needed
Using multiple buttons with different text lengths is rather common, and so is the issue of them not being aligned. It makes buttons unpleasant to look at, especially on mobile devices.

Alternatives Considered
Not much I can personally think of, besides rewording your labels to match a cert...

chilly siloBOT
chilly siloBOT
#

Description
It would be nice if there was a form component for sending multiple component inputs in a single payload. The way I envision this working would be to have a Form component that works similarly to the Action Row, where it has a component field that holds other components. When a user presses a button or makes a selection with a Select component or uses any other future component, instead of immediately sending a payload to the application, it would wait until a "Submit" button...

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

Description

There is consistent, but undefined, behaviour if you GET Messages with the parameter before=0.
It'll get everything except the most recent message, ordered newest to oldest.

In testing, I was using limit=100, but limit=2, and other values produces the same result.

Steps to Reproduce

GET /channels/CHANNEL_ID/messages?limit=100&after=0
Parse JSON

Expected Behavior

Empty JSON Array

Current Behavior

Sorted JSON Array of Newest to Oldest, l...

chilly siloBOT
#

Description

Pretty much the title. It would be very useful to be able to automate reporting of "bad" content. I didn't obviously see a request for this, but searching for "report" + "endpoint" turns up... lots of unrelated stuff.

Why This is Needed

In the Discord Bots server, we've been dealing with transphobic / otherwise-bigoted raids for the last few weeks. While raids are raids and all that, it's frustrating to consistently have spec...

#

Description
Threads were enabled on a official-run Discord moderator-only server.

Steps to Reproduce
Change thread notification settings
Set the thread to auto-archive
Now the thread notification setting reset after it archives itself

Expected Behavior
Thread should not reset notification settings after archival.

Current Behavior
Thread notification settings reset after archival.

Screenshots/Videos
Server Id for debugging purposes: 667560445...

chilly siloBOT
#

Description

Having a slash command with "default_permission": false with an permission overwrite for the @everyone role is displayed as greyed out (disabled) even though the command is (and should be) usable.

Steps to Reproduce

  1. Create an slash command with "default_permission": false
  2. Add an permission overwrite for the command to allow it for the @everyone role: {id: guild.id, type: 1, permission: true}

Expected Behavior

The command is displayed...

#

Description
I was just sharding my bot, i was running my bot many times, because the bot WS was too high after sharding, anyways, i get an error saying 429 hit on route /gateway/bot, and it is spamming my terminal. I tried closing the bot and running it again, but i still get that error.

Expected Behavior
I expect the bot to be ready, instead of giving all those errors

Current Behavior
It just spams my terminal with the same error

Screenshots/Videos
...

chilly siloBOT
#

This is not a bug, error code 429 indicates a ratelimit; your bot tried to connect to the Discord gateway more than a thousand times in a single day which is the limit, the ratelimit lasts for an entire day.

This is not an accurate response as to why they are hitting the 429 ratelimit. Gateway identify limits are separate from REST ratelimits.


With that aside, this is a discord.js "issue" that one may encounter when spawning too many shards too fast (since the ratelimit for t...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

This PR adds a link to Remora.Discord, a low-to-medium level C# library. The library comes with full API coverage (excluding voice), support for the latest features (v9 API, slash commands, buttons, etc), and an extensively tested codebase. Generally, the library aims to (as far as is reasonable and feasible) map 1:1 with the Discord API, and to only perform minimal abstractions or coercions.

Rate limits are transparently handled via a [Polly policy](https://github.com/Nihlus/Remora.Discor...

chilly siloBOT
#

The various message-creating or message-editing endpoints can now, with the introduction of message components in #3007, take an array of components to add or modify the components of the message.

This PR adds documentation for these new parameters. Personally, I've only used and verified the Create Message and Edit Message endpoints, but as I understand it from others, the parameters function the same for webhooks.

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

This adds a new discord client option to the community resources.

It aims to please the reactive / functional programming crowd.
It also implements all the latest API features, such as slash commands and message components.

It uses https://github.com/tim-smart/discord-api-docs-parser to generate the REST endpoints and type information.

It is quite new, so I totally understand if you don't want to include this project :)

chilly siloBOT
chilly siloBOT
#

Description

A slash command with "default_permission": false and no user permission overwrites will display as greyed out but still work in DMs. This is a different behavior to using the same command on a guild without permission overwrites where the interaction will fail and never be send to the application. This can break some applications which don't expect to receive slash command interactions from DMs when "default_permission": false is set.

You can also set a `default_p...

chilly siloBOT
#

Description

The GET Reactions (GET/channels/{channel.id}/messages/{message.id}/reactions/{emoji}) endpoint includes the user ID given to it if it is one of the users that has reacted to it.

This breaks discordrb's current Pagination behaviour since it assumes the next call will only include IDs strictly greater than it in the response, use the last ID, and continue, so it once it gets to the last entry, it ends up in a loop of making identical requests.

Note this was not the case...

chilly siloBOT
chilly siloBOT