#github-notifications

1 messages ยท Page 32 of 1

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Seperate Guild for Bot & Lib Developers is a very good idea for my opinion. Like above said lots of Premium/Freemium Services already has seperate Sandbox APIs or Services to test and develop integrations very quickly and minimize the Bugs. If Discord decides to implement this SandBox Guild can in the early stages allow Early-Verified Bot Developers or Bot Developers whose Bot is over certain Guild threshold. But not ONLY the biggest Bot Developers like Mee6's Developers or Dyno's Developers....

chilly siloBOT
#

Or for admins to change bot avatars similar how they can change nicknames to everyone, it doesn't really matter. This would allow [bots to allow] communities to customize bots for their guilds. For example, we want to use bot X, themed to our server, we've already renamed it to Y, but it would be great if we could also change the avatar. I understand that this is a nitro bound feature, but just like emojis I feel like this is one of those things that bots should be able to do.

chilly siloBOT
chilly siloBOT
#

I don't think it's necessary, because it's only for group DMs. Only user accounts can manage these and self-botting is not allowed. Bots don't have access to group DMs

That's actually not true. Through OAuth2, bots can access messages from all channels a user has access to if the application was granted the messages.read scope. That way bots would also be able to access group DMs and therefore have a use for the group DM icons.

chilly siloBOT
#

Description

The new avatar field introduced to the Guild Member object in #3081 should be marked as optional, in addition to nullable. The API may omit them from relevant gateway events.

Steps to Reproduce

Observe relevant gateway events from a large guild, such as Guild Create or Guild Member Update. Some will lack the avatar field on the member payloads.

Expected Behavior

Either all relevant gateway events should include the avatar field, or the docume...

chilly siloBOT
chilly siloBOT
#

Description

Hello. I am currently working on a bot on https://discord.com/developers. However, it seems every time I make changes in OAuth2 or Bot tab, nothing saves! And when I reload the page or visit again, everything restarts as if I made no changes!
I made sure to disable my AdBlock on this website, even so the save bar at the bottom of the page does not show up!
I also tried it both with Firefox and Chrome and even created multiple new apps but still but had no luck!
I...

chilly siloBOT
chilly siloBOT
#

Description

When publishing slash commands to "guild", everything seems to work fine. However when I published the commands globally, after some time had passed, it created duplicated slash commands.

Steps to Reproduce

  1. Deploy commands to guild
  2. Then deploy commands to global
  3. After some time, duplicate commands appear

Expected Behavior

I expect publishing commands globally not to create duplicate entries, but to "overwrite" existing ones.

**Current Behav...

chilly siloBOT
#

Mil disculpas solo intenta ya cerrar eso pues por mi prolia culpa esta eso pero no me salio ๐Ÿ™

Powered by Cricket Wireless

-------- Mensaje original --------
De: JMunkk @.>
Fecha: 29/9/21 04:05 (GMT-06:00)
A: discord/discord-api-docs @.
>
CC: Subscribed @.***>
Asunto: Re: [discord/discord-api-docs] Duplicate Slash Commands (#3885)

@ckohenhttps://github.com/ckohen @advaith1https://github.com/advaith1 Alright thanks to both of you, it cleared th...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Hey friends,

I was hoping we could allow Button components of type 5 (link buttons) to be sent to non-bot webhooks. Currently they are stripped from the result when I POST them.

I believe it was mentioned in the DDev server that this is intentional behaviour for consistency, because components in general require interactivity. However, it is already documented that link buttons do not send an interaction payload to the bot/server endpoint, so IMHO this is a moot point - link buttons...

#

Perhaps you'd like to be more specific... but otherwise,

  • bots can send a message component inside a DM, AFAIK, there are no restrictions.
  • I recall a bug wherein buttons don't show up in DMs, so check if you're up to date.
  • not sure what "message" therein means, but if its an error, its because you need to respond back to any interaction.
  • it's possible to send a message with components in a DM if the "command" was triggered in a guild.
#

Considering that bots with privileged intents cannot be added to 100+ guilds if it isn't verified

This is actually not the full picture. Any bot--regardless of intent requirement--cannot be added to over 100 guilds. That's why I'm not sure I understand the use case of this feature suggestion? You do effectively have this limit already, it is 100 servers. A bot that is currently in under 100 servers cannot join a 101st without getting verified.

The only other thing that currently trigg...

#

For the sake of pure moderation, stopping events before they get sent to other users is definitely better than retroactively deleting them. However, that sort of "man in the middle" architecture is not something that Discord currently or plans to support. It would be a major change to our architecture, and would frankly be a huge load burden on someone implementing it to keep latency low at the scale at which Discord operates.

#

For the sake of pure moderation, stopping events before they get sent to other users is definitely better than retroactively deleting them. However, that sort of "man in the middle" architecture is not something that Discord currently or plans to support. It would be a major change to our architecture, and would frankly be a huge load burden on someone implementing it to keep latency low at the scale at which Discord operates.

#

I think this would be solved by auto-complete suggestions as a broader feature of slash commands. The application could stream in suggested queries, such as youtube searches or your example of color choices, which would allow a lot of use-cases to be covered in one feature.

But, I do agree that there should be a way to make choices optional and allow users to set other values as well.

#

However, after some time (quite a while, possibly hours, I haven't measured) the interaction token appears to become invalid, causing that endpoint to return "Invalid Webhook Token".

Interaction tokens last 15 minutes.

These ephemeral messages aren't stored in the backend for Discord. Fundamentally though, I think expecting an ephemeral message to last 2 days is unrealistic. I suspect most of these go away in less than 15 minutes. If you want your message to be long lasting then it sh...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

For URLs discord://test/users/296776625432035328 the API returns 400 with Not a well formed URL
While discord://test.com/users/296776625432035328 works fine
I don't believe this is intended behavior and probably just the URL parser looking for a TLD, but just something I noticed while testing this
On a side note, since this is implemented in components could it also be implemented in embed author/title URLs
Cool addition nonetheless ๐Ÿ‘

chilly siloBOT
chilly siloBOT
#

https://feedback.discord.com

that. doesn't work

yes it does

Just because you don't like it, doesn't mean it has to be replaced.

lots of people hate the redesign, so the redesign can rightfully be reverted.

and lots of people like it, so rightfully no.

yeah right. explain this. which shows that many people hate the redesign. https://www.reddit.com/r/discordapp/comments/nc2dsg/just_a_quick_example_of_the_updated_colours/

#

WTF?! I don't care! I want the redesign to be reverted!

here! I put some definitions incase the discord staff does not know what these words mean:


redesign
/riหdษชหˆzสŒษชn/
Learn to pronounce
verb
design (something) again or in a different way.
"the front seats have been redesigned"
noun
the action or process of redesigning something.
"it was achieved by the redesign of the product"


revert
See definitions in:
All
Islam
Biology
Law
verb
past tense: reverted;...

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

For both predetermined and autocompletes choices, having an emoji/image associated with the response would be pretty helpful.

For my use case, I'd like to label some of my tutorial/help commands with an associated emoji to categorise them. (say all mod related commands have a :ban_hammer: emoji). In other cases, users are directly picking out emoji so the actual picture would help them

This would effectively bring slash command options up to the same level as in Selects.

chilly siloBOT
#

Sup guys, I own a bot which has more than 100 people, but when I try to update to Discord.JS 13 I get an error when i load the bot up.

image

Error [DISALLOWED_INTENTS]: Privileged intent provided is not enabled or whitelisted.
    at WebSocketManager.createShards (C:\Users\Yassine\Desktop\dev\Servant-Of-Allah-Discord-Bot\node_modules\discord.js\src\client\websocket\WebSocketMa...
chilly siloBOT
#

Description

User.accent_color and User.banner don't seem to be sent to the client on any endpoint except the user fetch endpoint. This makes it impossible for libraries to cache these properties reliably. The user update event also does not fire for those properties, so it's impossible to update them dynamically.
I assume this is not intended behavior as it is not documented with a warning anywhere on the docs (as far as I looked)

Steps to Reproduce

  1. Fetch a guil...
chilly siloBOT
#

Right now on the slash command options you can make it where a option is required or not, but in some cases there is a need you might need pick at least one option.
Like for example: You could make a preset option with some colors and another option where you could type in a color that doesn't exist in the preset.

Just like the required option, this option could also be implemented to the client where the user has to choose one option instead of sending the request and getting a reply...

#

Right now on the slash command options you can make it where a option is required or not, but in some cases there is a need you might need pick at least one option. Like for example: You could make a preset option with some colors and another option where you could type in a color that doesn't exist in the preset.

Just like the required option, this option could also be implemented to the client where the user has to choose one option instead of sending the request and getting a re...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

@ImRodry

I assume this is not intended behavior as it is not documented with a warning anywhere on the docs (as far as I looked)

User.banner, User.bannerURL(), User.accentColor and its ClientUser respective currently has a warning which reads the following:

The user must be force fetched for this property to be present

I think that's enough documentation to show that it won't be present unless you force fetch the user.

#

Description

Slash commands option choices cannot be set any other type then "string"

Steps to Reproduce

Create a slash command with an option that has choices and set value of choice to an integer or double (as specified in docs)

{
    "name": "blep",
    "type": 1,
    "description": "Send a random adorable animal photo",
    "options": [
        {
            "name": "animal",
            "description": "The type of animal",
            "type": 3,
       ...
chilly siloBOT
#

Obviously, since "string" does not refer to the option but to the actual property value in the json.

? What do you mean?

You used option 3 and tried to input a number as choice value (which obviously failed), I believe it says the other options (number and double) since it refers to option types 10 (double) and 4 (integer), the error you got is because you tried to use numbers as values for a string option.

#

Obviously, since "string" does not refer to the option but to the actual property value in the json.

? What do you mean?

You used option 3 and tried to input a number as choice value (which obviously failed), I believe it says the other options (number and double) since it refers to option types 10 (double) and 4 (integer), the error you got is because you tried to use numbers as values for a string option.

Right, This was the issue. I tried setting option typ...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

Mobile users cannot copy embed field values.

Why This is Needed

On mobile, it is currently not possible to copy text from an embed. This is extremely inconvenient when a user is given data they want to copy in an embed field. For example, I use the command /getid name: ElisiDesmo which then gives me his id 2690315230. When I am on mobile, I have no way to copy this ID, I have to just type it out below the message then copy it.

![](https://media.discordapp.n...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

honestly, i don't like this being a nitro-bound feature per user. it should be part of server-level nitro boosts and getting to level 1.
I have a small Eve Online community. We already force Discord linkage through our website so that we can force nicknames (it's a game security feature; Eve Online is like that. bunch of tech nerds play this game...lol).

It would be cool if we could also force the Avatar to match their in game avatar since we have direct access to those as well as the nic...

#

Honestly, I don't like this being a nitro-bound feature per user. It should be part of server-level nitro boosts and getting to level 1.

Use Case: Communities dedicated to a specific game
I have a small Eve Online community. We already force Discord linkage through our website so that we can force nicknames (it's a game security feature; Eve Online is like that. bunch of tech nerds play this game...lol). It would be cool if we could also force the Avatar to match their in game avatar ...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

I don't know if discord.py forks are allowed in this list, so I decided to try adding this one.

disnake is a fork of discord.py. There're implementations of context menus and slash commands with fastapi-like syntax.

Here's a basic example of a slash command with one option:

import disnake
from disnake.ext import commands

bot = commands.Bot(command_prefix='$', test_guilds=[...])

@bot.slash_command()
async def avatar(
    inter: dis...
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

Steps to Reproduce

<!--

  1. Manually paste the data in Pain.md into a slash command the bot can accept. The mentioned slash command must be named /addelo, with one string type argument called "arguments"
  2. Copy and paste the data in Pain.md in the same way as above.
  3. roles will become their names, causing unacceptable unpredictability
  4. ?????
    Profit
    -->

Pain.md

**Expected Beh...

chilly siloBOT
#

Its already in mobile. This was an API change to allow link buttons to use it, which has already been done. The custom discord:// scheme was already supported on mobile platforms.

It might throw you to a browser and then immediately back into the app (there's some bugginess I've seen doing my own app development) but the custom discord:// scheme has been supported on iOS and android well before this.

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Feature Request

I think that being able to follow a news channel into a DM fiels would be a nice feature.

How would it work?

When a user wants to subscribe to a news channel, they could choose either to post it in a server or in a special DM channel (like the official Discord System).

Why would it be useful?

When a message in a news gets posted and published, it's just published into all the servers that follow that channel. A user may not know a message has been published as they ...

chilly siloBOT
chilly siloBOT
#

No seรฑor yo de ustedes no use nada

Enviado desde Outlookhttp://aka.ms/weboutlook


De: Advaith @.>
Enviado: sรกbado, 2 de octubre de 2021 07:37 p. m.
Para: discord/discord-api-docs @.
>
CC: Subscribed @.***>
Asunto: Re: [discord/discord-api-docs] Add BOT_HTTP_INTERACTIONS User flag (#3903)

@advaith1 commented on this pull request.


In docs/resources/User.md<https://github.com/discord/discord-api-doc...

#

Y me regresan mis cuentas o me voy a mรกs alto

Enviado desde Outlookhttp://aka.ms/weboutlook


De: Advaith @.>
Enviado: sรกbado, 2 de octubre de 2021 07:37 p. m.
Para: discord/discord-api-docs @.
>
CC: Subscribed @.***>
Asunto: Re: [discord/discord-api-docs] Add BOT_HTTP_INTERACTIONS User flag (#3903)

@advaith1 commented on this pull request.


In docs/resources/User.md<https://github.com/discord/disc...

chilly siloBOT
chilly siloBOT
#

Hay cosas que no se pueden platicar deberรญas entender mil disculpas de mi
parte sรณlo soy un tรญtere en este juego de poder asรญ que cumplo con mi
funcion

El dom., 3 de oct. de 2021 4:37 a. m., GoldenAngel @.***>
escribiรณ:

...You shouldn't be using the Development Client in the first place? (It's
unsupported, among many other reasons)

then why does discord let us use canary?

Discord Clients: Stable, PTB and Canary is officially supported.
Discord Client: *Discord Developmen...

#

Y por favor lee y borra es mucho mรกs grande todo no quiero terminar en
alg7n lugar sin vida

El dom., 3 de oct. de 2021 4:45 a. m., yo aguilar @.***>
escribiรณ:

Hay cosas que no se pueden platicar deberรญas entender mil disculpas de mi
parte sรณlo soy un tรญtere en este juego de poder asรญ que cumplo con mi
funcion

El dom., 3 de oct. de 2021 4:37 a. m., GoldenAngel <
@.***> escribiรณ:

...You shouldn't be using the Development Client in the first place?
(It's unsuppo...

chilly siloBOT
#

Ok en un poco mรกs busco para que muevan todo o a alguien :)

El dom., 3 de oct. de 2021 5:06 a. m., Zebby @.***>
escribiรณ:

...You shouldn't be using the Development Client in the first place? (It's
unsupported, among many other reasons)

then why does discord let us use canary?

As GoldenAngel2 said, the Development client (with the black coloured
icon) is separate/different from the Canary client (with the more orangey
coloured icon)

โ€”
You are receiving this becaus...

chilly siloBOT
chilly siloBOT
#

Like I said earlier: This issue in this repository does not help. None of the employees looking in here can do anything about the redesign. The best way is the Discord Feedback page. The feedback page is the only tool that Discord gives us to express our thoughts & opinions. If you are not satisfied with that, you should consider switching to a different platform, as Discord doesn't give any other way.

#

Like I said earlier: This issue in this repository does not help. None of the employees looking in here can do anything about the redesign. The best way is the Discord Feedback page. The feedback page is the only tool that Discord gives us to express our thoughts & opinions of the platform. If you are not satisfied with that, you should consider switching to a different platform, as Discord doesn't give any other option.

The feedback does not respond. it's like talking to a brick of wall...

#

Like I said earlier: This issue in this repository does not help. None of the employees looking in here can do anything about the redesign. The best way is the Discord Feedback page. The feedback page is the only tool that Discord gives us to express our thoughts & opinions of the platform. If you are not satisfied with that, you should consider switching to a different platform, as Discord doesn't give any other option.

The feedback does not respond. it's like talking to a brick of ...

chilly siloBOT
#

Currently the change log on the dev portal is kept for mostly breaking changes/feature announcements, i feel that the page in its current form is underutilized. It would be great if it wasn't just the big stuff that made its way to the change log, this would allow developers to keep more in touch with the API and allow them to utilize new features or changes no matter how small.

#

Mucha mejor estรก aporte tendrรญa manera de ayudarme con algรบn tipo de link ya no confรญo pero si me aceptรณ ayuda de alguien razonableย El 3 oct. 2021 12:48 p. m., Jupith @.***> escribiรณ:
Currently the change log on the dev portal is kept for mostly breaking changes/feature announcements, i feel that the page in its current form is underutilized. It would be great if it wasn't just the big stuff that made its way to the change log, this would allow developers to keep more in touch with the...

#

I +1 this as digging through the docs and cross referencing with commits to figure out what changed is just not a good development experience and hurts overall discoverability. Not too mention the sporatic announcements made in ddevs for API changes. There's seemingly no consistency to where API changes are logged or announced.

I'd suggest some sort of RSS feed for all relevant changes to the API, even if those changes aren't "breaking"

chilly siloBOT
#

Description

When a user's properties change, the client receives two events: PRESENCE_UPDATE and GUILD_MEMBER_UPDATE (given the proper intents) but not USER_UPDATE

Steps to Reproduce

  1. Establish a connection with the gateway with the GUILDS, GUILD_MEMBERS and GUILD_PRESENCES intents
  2. Have one of the users in your client's guild change one of its properties (tested this bug with username and public_flags)
  3. Observe the events you receive

*Expected Behavior...

chilly siloBOT
chilly siloBOT
#

To be honest I could care less about Discord making a profit. I think people on this forum are way too concerned about Discord losing out on precious dollars, despite most of the people not being venture capitalists or having a stake in Discord. As is evidenced by the numerous down votes. Ultimately as Discord puts more features behind a paywall, they lose on community goodwill, which I think will hurt the company in the long run.

However, the main problem I see with the server avatars is ...

chilly siloBOT
#

Allowing bots to change users' in-server profile pictures would require verification and also the picture that is going to be set as profile picture would be checked if it's NSFW or not with an AI. The user itself would be notified when their profile picture is changed so if bot sets a NSFW profile picture, user can remove it as fast as possible and report the bot.

There are tons of ways to avoid security issues.

#

Contrary to popular opinion, Discord does need to make money in order to sustain the platform. I'm not sure if you are aware of how much hosting costs at scale, but let me tell you its a surprisingly large number. Venture capitalists and angel investors can only carry you so far. As much as I would like for nitro to not be a thing and everyone have access to it all, this is unfortunately not possible. Either we have some gated features, or discord starts selling our data. I think I'd take the...

chilly siloBOT
#

@NovaFox161 Thanks for that. I am completely aware Discord needs money to sustain the platform and the costs, however as I mentioned it's basically out of scope of what these discussions are supposed to be about. Might as well leave those discussions for people who are bankrolling Discord or have some sort of financial stake in the company, which I'm guessing is nobody here. When I was referring to venture capitalists, I was saying that financial discussions should be left to those sorts of p...

chilly siloBOT
#

Many Eve Online Discord servers use the nickname changing feature to align users with their characters in game. If we were to lose that because "bots changing things is beyond their scope", it would be a huge detriment to our communities and the cyber-security we employ. Eve Online isn't like other games, it's highly dependent on technology from it's user base.

And, technology can also be used to solve the NSFW problems that are being proposed that probably are not so hard to fix with mode...

#

@seraphx2 Essentially what I am saying is that with a feature like Discord would be putting a lot of trust into bot creators to use it for legitimate purposes, and given that pretty much anyone can make a bot right now, I don't think it's a good idea. The current paradigm shift towards trusting bots less is good, for example with the message intent. Although bot devs complain about things like that a lot, it is necessary.

#

@seraphx2 Essentially what I am saying is that with a feature like Discord would be putting a lot of trust into bot creators to use it for legitimate purposes, and given that pretty much anyone can make a bot right now, I don't think it's a good idea. The current paradigm shift towards trusting bots less is good, for example with the message intent. Although bot devs complain about things like that a lot, it is necessary.

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

A user may not know a message has been published as they have to manually check the servers following those channels

Current solution (or workaround) is to set the receiving channel's notification setting to "All Messages" (Granted, this does mean the channel, it's parent category (if in one), and the Server cannot have their notifications 'muted' in order for this to work). That way, you get the notifications as you would a DM (and also the white unread message marker next to the Server...

#

Allow some way to copy all the text from an embed on mobile (similar to how they have the "Copy Text" option when they select a message).

Pretty sure that's already an (annoying) feature of Mobile, at least on Android. ๐Ÿค”
I can press-and-hold an Embed and it copies the Embed's text for me. I say "annoying" as this commonly happens when I'm scrolling chat with Bot Embeds in (like a #bot-commands channel for example) and don't intend to copy Embed Text :c

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

The way typing notifications was disabled due to elevating usages caused cloud flare to return a 403 with html code. This wasn't announced anywhere and caused significant issues with people using my bot as the 403 indicates an error (and possibly falls within the IP bans on the api)

The response is also raw html, which messed with the json parsing we do on responses if it has content.

It would be nice if there was at least an announcement when the change was deployed to let us know inst...

#

I'm reopening this.
I'm getting a captcha from cloudflare, when it's just playing music from youtubde_dl!

(403 forbidden Access denied | discord.com used Cloudflare to restrict access)

There is NO way for me to bypass this, seeing as I can't get the same reaction from the the web browser.

https://mystb.in/FixturesCartoonLanguages.xm - This is the full error, the reason it shows as a python error is because its to big for a message.

#

it is not malformed JSON, it's a HTML Cloudflare error page and that's normal when you get IP blocked or there's an outage, so this isn't an unusual response

For IP bans, it's still json data and looks similar to the format of a normal 429, there's no html in it. During an outage, we see response codes like 500, 502, 503, etc... and not something in the 400s.

Similar breaking changes that happened earlier was when the CDN randomly started 403ing on requests without a user-agent.

chilly siloBOT
#

I personally feel that your addition to this issue is unrelated, as the original issue was related to at the time unexplained 403's from specific game(server) user agents. Bumping old closed issues just because they have a vague title related to your issue without reading the contents of the previous discussion should be discouraged.

but how come all the endpoints? Seeing as I cannot even run a command without and error. I get on the status page it shows the "typing" is down. It should s...

chilly siloBOT
#

If you're subscribed to the DDevs announcements channel you can have stuff like this broadcasted to your servers. All of the major bot list servers and discord API dedicated servers subscribe to this announcement channel.

What else do you want? a client pop up? It was announced quickly and responsibly and honestly for the first time ever I'm completely happy with how discord handled this.

#

As someone who just started seeing the error now, the recent comments are the only reason I found this and got any information about the problem. If anything GreenDiscord raising this back up was more helpful than doing nothing ๐Ÿคท.

This issue was opened by my friend Ultra only because it return a cloudflare error on a garrys mod server running chrome 18. Unless your issue pretains to that, it is unrelated to this issue.

#

If you're subscribed to the DDevs announcements channel you can have stuff like this broadcasted to your servers. All of the major bot list servers and discord API dedicated servers subscribe to this announcement channel.

We're leveraging discord.py, so we're one step removed from the issue, hence the lack of visibility here.
Anyways, apologies for the spam I guess.

chilly siloBOT
#

Actually allowing bots to set their own guild avatars can be useful for White-labeling, especially in large servers. For example, you own a large server, and you use a third-party moderation bot in the server (that allows to change its own guild avatar) but you want to use with your own brand. So, with applying your brand, you can make the bot appear like it belongs to the server.

I know if a bot is already open-source you can self-host ...

#

Tenga lo por seguro usarรฉ todos los recursos ya que solo me toman en burla
gracias y estamos

El lun., 4 de oct. de 2021 2:38 p. m., Yusuf Cihan @.***>
escribiรณ:

Actually allowing bots to set their own guild avatars can be useful for
White-labeling https://en.wikipedia.org/wiki/White-label_product,
especially in large servers. For example, you own a large server, and you
use a third-party moderation bot in the server (that allows to change its
own guild avatar) but you want...

chilly siloBOT
#

Dates can be annoying since there are many formats of it, even if you specify what format the bot is looking for, people still mess it up. Having a date option and letting the user select the date with a calendar panel and sending a date object (or something similar) back would be amazing. Let me know what you think about this idea

#

Es buena y fรกcil en realidad ahora todas las app por ejemplo twich ya dije
que weba buscar como hacerlo que funcione y Ohio nadie quiere mas
competencia asi que te dejan morir pero cada vez lo hacen mas complicado si
tan sencillo que es poner panel escondido por un lado que aparezca al click
y del otro lado otro escondido con esas madres emotes y demรกs en
transparente para no perder detalle tu idea hazlo en transparente seria
mejor creo

El lun., 4 de oct. de 2021 3:04 p. m., Shamil @.*...

#

Lo siento no me siento muy bien disculpa mas tarde arreglo y pongo algo chido y pido ayudaย El 4 oct. 2021 3:20 p. m., yo aguilar @.***> escribiรณ:Es buena y fรกcil en realidad ahora todas las app por ejemplo twich ya dije que weba buscar como hacerlo que funcione y Ohio nadie quiere mas competencia asi que te dejan morir pero cada vez lo hacen mas complicado si tan sencillo que es poner panel escondido por un lado que aparezca al click y del otro lado otro escondido con esas madres emotes...

chilly siloBOT
#

In the secret DDevs channels for lib/big bot devs. I brought it up asking for documentation since a community announcement went out about this feature being rolled out. According to several devs its just a widescale test and the feature is not complete/stable.

I don't know much more beyond that, and they certainly didn't make it sound like a test when they've been rolling it out, but I'm not discord. So, I would assume that any mention of events in the docs is going to change/not finalize...

#

Danny and others have brought that up before relating to other undocumented API behavior that hasn't changed, but discord's official position is that if its not stable, it doesn't get documented. Regardless of if it changes or not (eg multi-attachments). And if its not documented, developers should not use it, and this is the API docs after all, not docs for in-client features.

I'd also like to note that there's been blog posts for several other things in the past which have also changed ...

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

I haven't seen anyone else mentioning this yet so adding this here- code blocks currently aren't supported with slash commands. I'm working on a code execution bot and while I can ask for the read message intent in the future, being able to receive code blocks from slash commands with all the validation already done would be great.

chilly siloBOT
#

Why exactly would you need code block support?
Pretty much any coding language I know doesn't care that much about formatting (how many indents you have f.e.) and if they do is it a shitty language.

As an example, in Java does it not matter if I type public String someString = "hello"; or public String someString = "hello"; because at the end is the important part the code itself.
So you could just utilize a String input and (maybe) a second one for selecting the language ...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

If codeblock markdown will not be supported, would a codeblock option type with a syntax highlighting language set by the bot be useful? We have a command for setting custom CSS and we currently require users to send the CSS in a ```css codeblock; an option type that automatically highlights the code would be a much better user experience.

For example:

{
    "type": 12,
    "name": "css",
    "description": "Put in the CSS here",
    "required": true,
    "language": "c...
chilly siloBOT
#

No se hacerlo como dije antes se jugar con app en Code tengo mucho que ni entrรณ bueno miento pero no a cambiar solo entrรณ a ver a conocer los cmdย Cree vaya algun tutorial en alguna plataforma para ver como lo inyectan si como entra una pรกgina en la app para que funcione no se si me explicoย El 5 oct. 2021 12:10 p. m., Advaith @.***> escribiรณ:
If codeblock markdown will not be supported, would a codeblock option type with a syntax highlighting language set by the bot be useful? We have a...

chilly siloBOT
#

@Andre601

This makes very little sense. You expect users to type in unformatted code in a single line like this- let my_num = 2; bigger_num = my_num + 5; println!("The result is: {}", bigger_num); and take away the option to use languages like Python altogether because they're "shitty"? By that logic all features meant for convenience and better user/developer experience should be abandoned because things "just work".

chilly siloBOT
chilly siloBOT
#

I think it should be possible to grab all the slash commands located in guilds(for your bot), in one api request, so on libraries like discord.py, or discord.js you don't need to readd the command every time the bot starts up, instead you would be able to add it temporarily in your cache, so the commands, get added if they haven't been. Basically it just makes it easier to see what slash commands you registered in guilds, and it doesn't take a ton of api requests, if this can't be added, then...

chilly siloBOT
#

Description

Pasting a slash command immediately after joining or opening a server does not get detected as a slash command and is directly sent as plain text. Clicking anywhere on the screen after pasting or pressing space is usually enough to make Discord detect it as a slash command, but my users don't know this.

Steps to Reproduce

  1. Get a slash command on your clipboard, like /command arguments go here.
  2. Select a different server
  3. Go back to the server with the co...
chilly siloBOT
#

The concept:
BOT sends a message (Message Components, Empheral etc) with a TTL option in it, discord register itself based on the TTL when this message or component etc gets deleted and handles this itself by internal CRON.

Example:
BOT sends a message with some buttons, the bot registers internal these buttons will work for the determined TTL.
Up to this point, there is not that much more transfer than adding some TTL to the API request what is minimal in size.
What differs is what ha...

chilly siloBOT
chilly siloBOT
#

The Problem

Application commands are great, but I got the feedback that its hard for people to use them, especially on mobile devices, when there are lots of options.
With 25 options an application command can have, there is a lot to type when using the command.

A Solution

A solution for that problem could be buttons for application commands with predefined options.

NAME VALUE COLOR REQUIRED FIELD
Command 6 grey, start an application com...
chilly siloBOT
#

Something I implemented during hackweek over at https://github.com/IanMitchell/hackweek-discord-api-docs/

Grew tired of seeing so many link fixing PRs when the CI basically existed, so I brought it on over.

Practically speaking, whether this is effective depends on the docgen. If the way the docgen generates links changes, this will need to change, and we currently don't know when that happens. So yeah, I'm hoping this is a temporary solution,

Prettier is installed, but i've told it ...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

For defaults, you can actually work with optional values and don't require them, if not defined parameters you load in standard parameters and instead of confirming the slash command you first serve a message with the buttons, place a default in the description of the command so people know what the default is... (This is already possible today)

For starting a slash command with a button i would rather say to just link it to the attachment button or new button in the default UI.

I do lo...

chilly siloBOT
#

I don't know how DiscordPY works but for DiscordJS you can easily fetch all commands for a guild when you don't specify a command id.
https://discord.js.org/#/docs/main/stable/class/ApplicationCommandManager?scrollTo=fetch
And Discord developers documentation:
https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands

Also to come to the topic of guild commands you shouldn't read them on startup but store them upon creation, they only change w...

chilly siloBOT
#

This is actually something i would like to see too, while we can see the date in embeds based on the UNIX timestamp at the bottom there is no way in displaying a date to users in their own timezone.
It could have some simple implementation like a role display or channel display based on the <#...> <@...> with a simple <$UNIX timestamp id> like <$35435455> would display the time towards a user...

chilly siloBOT
chilly siloBOT
#

Hello ๐Ÿ‘‹

Have you guys ever considered more granular intents? What i mean is more control of events like selecting which guilds could send certain events. For example, suppose i want to implement a "VIP SERVER only feature" like Server Logs. I don't necessarily want to enable every intent on every single server on the bot. I just want those events on specific servers that opt into this feature.

Thank You

chilly siloBOT
#

I don't think this is feasible at all with discord's current design unless they add a bulk intent update event you can send in. Having 2k guilds per shards, that would mean sending in 2 thousand individual intent override events for this feature. Seeing as how they removed bulk-guild member requests, I don't think they like having an event you can send in with multiple guild ids. A re-identify would refresh the intents as well. Sending in a list of 'guildId: intent' on the identify payload wo...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

How about a perm that allows bots to show it's commands?
That can stop everyone from using bots in non bot channels.

Also how about a permission like cannot dm anyone for roles so that newly joined people can't dm advertise, whereas mod bots can dm people so they're notified about the warns, etc.

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

No I mean the values for the command options you enter in the text input.

To make it clear, another example:
A button "Report Discord Api Docs Bug" that starts an application command to create a Bug Issue in a github project like this:
/github create-issue type: bug organisation: discord project: discord-api-docs title: Bug Ticket from Discord User description:.

When you click the button, these values are already set in your text input and you only have to enter the descr...

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

Description

When calling activityManager.UpdateActivity with activity.Secrets set, I receive this error log message:

{
    code: InvalidPayload,
    message: "child \"activity\" fails because [child \"party\" fails because [child \"privacy\" fails because [\"privacy\" must be one of [0, 1]]]]"
}

Steps to Reproduce

Run this code:

var activity = new Activity();
activity.State = "Playing Sector's Edge";
activity.Timestamps.Start = (int)discordStar...
chilly siloBOT
#

These are libraries which cover different portions of the Discord API. SnowTransfer covers REST and CloudStorm covers gateway. These are older libs from V6 I now maintain with the consent of the owner. These libs now support support V9 and cover most or all of their respective field with respects to rate limits and allow for proxying requests to centralize rate limits.

I have not seen other modular libs on the community resources tab and was unsure if it was for a reason or just coincident...

chilly siloBOT
chilly siloBOT
#

The Problem

Slash commands are great, but the amount of commands you can register (only 100) can cause bots that do many things to hold off on implementing them.
It was recently mentioned during a Q&A that if the limit for slash commands were to be increased it could possibly cause older devices to heavily lag.

The Solution

Loading Slash Commands Incrementally in the UX could theoretically allow for an infinite number of slash commands. This would make the jump be easier for m...

#

Yes, and i've tried this approach before. It's honestly a bad approach with how subcommands are handled in their current state.

If my commands were grouped by category and I typed in the subcommand, it would not show up in the search. This is annoying for the user because now they have to remember the command name, and the category name. Subcommands are great for their uses, but for commands other commands they don't work as well.

chilly siloBOT
chilly siloBOT
#

'guild id of the command, if not global' refers to the guild_id of the application command itself.

The received structure when invoking the command is an Interaction, where the guild_id value is documented as 'the guild it was sent from'.

So the behaviour you are observing is intended. The only way to find out whether the invoked command was global or guild scoped as far as I can tell wou...

chilly siloBOT
#

There is RFC 7692 which describes concept "Compression Extensions" for WebSocket.

RFC 7692 supported by major browsers since at least 2014 and isn't a draft anymore since 2016.
It doesn't mean anything from technical standpoint because discord bots aren't browsers but it shows that it is quite mature set of extensions.
Event Discord client itself tries to handshake with Sec-WebSocket-Extensions: permessage-deflate in Upgrade reques...

chilly siloBOT
#

Description

The /oauth2/@me endpoint returns 401 instead of a 403 when using a valid token that does not have access to the resource. If you are relying on the status code to tell if a token has been invalidated, this can cause an issue.

Steps to Reproduce

Make a request to /ouath2/@me using a Bot token

Expected Behavior

A response with status code 403 and the appropriate JSON error

Current Behavior

A response with status code 401 an...

chilly siloBOT
#

Description
When a slash command is selected in the client when text is typed it will automatically select and input to the first option, but when pasting text with 2 or more characters, the option is not selected and the text is ignored when the command is sent.

Steps to Reproduce

  1. Select a command with options in the client
  2. Make sure the option is not selected
  3. Paste text

Expected Behavior
It automatically goes into the first option, like when typing:
![image...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

I think this would do better as a more general explanation about what format Discord expected in requests and what format users should expect in responses (application/json for both, with query strings in some requests). It should be enough to explain that, under rare circumstances, HTML (text/html) may be received, although the Cloudflare mention may still be appreciated.

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Although documented, this hasn't been launched yet. This issue is to track the launch of this.

Bot Rate Limits are as follows:

  1. A global 50/10 rate limit (meaning, this is the maximum # of messages a bot can send currently across all of discord).
  2. A 5/5 per server rate limit.
  3. A 5/5 global DM rate limit.

The rate limit applies to message creation and editing.

If your bot is big enough and is hitting the global rate limit legitimately, reach out to us ...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

@Bluenix2 There used to be an ack type (type 2 and 3 both were) but they were removed

Like. Seriously? I must admit I am beyond annoyed at this point with this feature. It could have been a great thing but with this hyper restrictive approach in all regards Slash commands might just be DOA at this point.

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

I don't know what threads broke, but there was a version bump to accommodate it. If that is an example of where additions resulted in a version change, it would contradict this section, both my suggestion and the original.

Thinking about this more, I don't think anyone can easily clarify the API's rich history of wishy-washy breakage and versioning with a one-liner. If you do keep the section, I'd recommend trying to define "additions" and "breaking", as futile as it may be.

chilly siloBOT
#

The PATCH endpoint to edit a command bumping version is valid. PATCH requests are describing the changes you want to make, PUT is saying: "I want the entity to be exactly like this.". A no-op PATCH would be an empty payload (and perhaps discord ignoring this kind of contrived operation is fair game but I have not tested to see if this bumps the version or not).

When I use a PUT method I'm asking the server to make sure that the entity -- the list of commands in this example -- i...

chilly siloBOT
#

Hi Iโ€™d like to add some more details on use cases here. Iโ€™ve been programming tools to help communities track engagement and conversion metrics. Considering the growing use of your product by influencers and crypto projects these kinds of tools are increasing in demand. Projects that arenโ€™t just interested in building hype and pumping up their numbers are focused on organic growth because they care about their users and want some level of predictability to help guide their decisions. Of cours...

chilly siloBOT
#

Also to come to the topic of guild commands you shouldn't read them on startup but store them upon creation, they only change when you alter them, they are still registered when your bot is offline.

That does make it trickier to add or update commands though; you need to run your bot once to register the command, get the command ID, get the bot offline again to remove the code for registering the command and add the new command ID, and get it online again. It is much simpler to just alwa...

chilly siloBOT
chilly siloBOT
#

Huh... ok...
Creating/Updating Slash commands is done by sending in JSON format...
So if you want to update commands a simple JSON file would do it without requiring your bot to have some downtime...
Easy way:

  • Bulk Update with an empty JSON API query, your commands will all be gone.
  • Read your updated JSON file and bulk set slash commands with the content of the JSON file...
  • Read all application command ID on Create or Update and store them in your bot memory (DB/Save File)
    Advanc...
chilly siloBOT
#

Thanks for posting this. We don't have any current plans to support this extension. The two major points are: 1) we don't want to deal with inflate bombs from client->server compressed messages and 2) having our own non-standard compression scheme means we can update it to our requirements in the future, which we can't with permessage-deflate.

One upside here is that thanks to how ubiquitous permessage-deflate is, there is lots of code you can use as a starting point to implement `zlib-str...

#

Thanks for posting this. We don't have any current plans to support this extension. The two major points are: 1) we don't want to deal with inflate bombs from client->server compressed messages and 2) having our own non-standard compression scheme means we can update it to our requirements in the future, which we can't with permessage-deflate.

One upside here is that thanks to how ubiquitous permessage-deflate is, there is lots of code you can use as a starting point to implement `zlib-str...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Thanks for the answer.

we don't want to deal with inflate bombs from client->server compressed messages

As per your documentation, current limit on payload is 4096 bytes. Assuming that it is a meaningful limitations based on payload content we can say that after decompression payload must be at most 4096 bytes too.
I don't know about what you use on your side, but at least 2 of deflate implementations that I know of (zlib and compress/flate from Go) will allow you to allocate buffe...

chilly siloBOT
#

Just for added context:
At the time they were removed because there was no way to know who was initiating the interaction (in the client), so bots (and subsequently users) were able to post messages that couldn't be moderated properly. At this time, it was also impossible to restrict certain application commands to certain roles or channels (still is, but we know that's coming)

I hope discord will add types 2 and 3 back once this happens. But these were removed for a good reason at the ti...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Discussed in https://github.com/discord/discord-api-docs/discussions/3811

Originally posted by LukeHankey September 11, 2021
I wasn't entirely sure where to post this so I thought asking the question here instead was best.

When registering slash commands and setting permissions for only specific roles to use them, when viewing the server with that role, you still can't use them which I guess makes sense but the opposite is also true - You can still use them even when viewin...

#

Honestly, I don't like this being a nitro-bound feature per user. It should be part of server-level nitro boosts and getting to level 1.

Use Case: Communities dedicated to a specific game
I have a small Eve Online community. We already force Discord linkage through our website so that we can force nicknames (it's a game security feature; Eve Online is like that. bunch of tech nerds play this game...lol). It would be cool if we could also force the Avatar to match their in game avatar ...

#

I guess maybe I shouldn't have used the world Bot in the title? This is an API request, I guess I just assumed since I was in the API discussion and I mentioned the ability to change nicknames and was also wanting the ability to change avatars (the exact way the API currently functions, it can't change avatars), that it was assumed it was an API feature request since the API is how bots interact with Discord.

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

Alright, I'm cool with merging it IF you update the docs for default_auto_archive_duration too, because what I want to avoid is someone in a few weeks then complaining that the field is optional and should use default_auto_archive_duration. As implemented, that is a value that clients use to pre-fill the dropdowns/etc, so I think we just need to make that clear there, probably just changing it t something "default duration" -> "default duration that clients (not the API) will use"?

#

This discussion board is for API suggestions; product suggestions should go to our feedback site so that the appropriate teams have visibility on them ๐Ÿ˜„

EDIT: In response to a few questions I got, the above is specifically for moving per-server avatars into a boost perk as opposed to a nitro perk. For a discussion on Bots being able to change per server avatars or set their own, other discussions exist and remain open (for instance,...

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

Hi all, I'm working with the team rolling out the new events feature and first of all want to thank you for the awesome work done on this PR :) The team is currently finalizing and cleaning up the API in order to officially open up functionality to developers soon. We'll take a look through this PR and the comments a bit more carefully very soon to get a better sense, but in the meantime please feel free to post here if there is anything big you feel is missing or confusing. We can't make any...

chilly siloBOT
#

The problem with webhooks

Currently webhooks have a BOT badge next to their name, even though they are not technically bots.
This also creates confusion among not so experienced users that don't even know what webhooks are.
When you (right) click on a webhook you only get a blank user profile.

My suggestions:

Webhooks get a WEBHOOK badge (instead of BOT)
![webhook badge](https://cdn.discordapp.com/attachments/898236069022142495/898242198859034654/14_10_2021-18_12_49-381x103_Di...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

I proposed something similar to discord when Context Menus were being released, which didn't make it through sadly.

On top of buttons starting slash commands, imo a cool thing would be for Context Menus to initiate Slash commands. In fact, Context Menus are basically Slash commands at its core just limited to 1 parameter. Anything you can do in a Context Command you can do in a Slash command. But that could have been a huge way to expand user experience imo. For example, a poll or giveaway...

chilly siloBOT
#

I'm a bit confussed with this one TBH, when you pick one of the max 5 options you already have the message, while in a user friendly poll, giveaway, reaction role and other stuff like that the bot would create that message in a nice embed for you depending the parameters given.

Why would they add more functionality on top of the existing functionality that runs ok for a few years now?
There are 200 million reasons (Playstation dollars) they are adding easier auto completion (slash command...

chilly siloBOT
#

Description
When adjusting the 'pan' argument for a user's voice-settings via the RPC Discord API command SET_USER_VOICE_SETTINGS, there appears to be no actual adjustment made to that user's audio stream to pan the audio left or right. Adjustments to the user's volume or mute status does appear to get applied though.

Steps to Reproduce

  1. Join a voice-channel with another user in it that is producing audio
  2. Use the RPC Discord API command SET_USER_VOICE_SETTINGS to adju...
chilly siloBOT
#
All `file` parameters must include a valid `Content-Disposition` subpart header with a `filename` and unique `name` parameter. Each file parameter must be uniquely named in the format `file[n]` such as `file0`, `file1`, or simply `file`. The suffixed index `n` is the *snowflake placeholder* for the `attachments` json parameter that is supplied in `payload_json`. If this suffix index is omitted, the implied index is `0`.
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

๐Ÿ‘‹ Small little idea to reduce load for developers and Discord potentially, and improve response times for end users using slash commands.

It'd be awesome if developers could include a cache ttl in their slash command responses, so that Discord can store that response for that period of time and reuse it if the same command is run again.

E.g. I have a help command that returns static content, it'd be great if I could set a long cache ttl on that so Discord only needs to ask me for it onc...

chilly siloBOT
chilly siloBOT
#

Description

I have recently tested an issue that has been an issue for a while from what it seems like where if you grant a user via mobile it doesnt trigger the API(It does display via audit logs) but if you grant it via desktop app it works perfectly file)

Note: I also decided to test with a public big bot for example Dyno same issue it did not log it (Quote from a support member in there discord "That'd be a discord thing - Dyno doesn't care what platform you use the commands on ...

chilly siloBOT
chilly siloBOT
#

That would be an alternative but would make it more complex to use:
Instead of just sending a button with an array of application command option values, I'd have to create a form and create a handler for that form instead of using existing application command logic.
API usage would also increase.

Even with forms, there are still situations in which it'd be better to use slash commands with some pre filled values.

So, having forms would not make this suggestion obsolete.

chilly siloBOT
chilly siloBOT
#

Hello ๐Ÿ‘‹

Is there any technical reason why a property on GUILD_CREATE event can not be added to help determine the type of GUILD_CREATE event. These events are emitted in various different circumstances.

  1. A guild was added
  2. Shard resumed
  3. Unavailable guild became available
  4. Initial loading when connecting to discord
  5. Insert anything i didnt think of here etc...

I am hoping a property could be added that we can then use to determine how to handle it without having to cac...

chilly siloBOT
chilly siloBOT
#

Description

When connecting to the gateway without the GUILD_PRESENCES intent (but with GUILD_MEMBERS), GUILD_CREATE events don't contains the member list.

Steps to Reproduce

  1. Connect to the gateway with the GUILD_MEMBERS intent, but without GUILD_PRESENCES.
  2. Observe the members key of GUILD_CREATE dispatches for small guilds.

Expected Behavior

members includes all members if guild.member_count <= large_threshold, and only the current bot otherwis...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

Currently, the sticker creation endpoint, POST-/guilds/:guildId/stickers, ignores payload_json and expects you to send in name, description, tags via the form fields.

Steps to Reproduce

Create a guild sticker, but send in name, description, tags as json in payload_json as in payload_json: {"name": "a", "description": "aaaaa", "tags": "poop"}.

Expected Behavior

The values would get read from payload_json just as they would as for...

chilly siloBOT
#

Pretty much any coding language I know doesn't care that much about formatting (how many indents you have f.e.) and if they do is it a shitty language.

That's a bold statement... Just because you aren't used to compiler significant indentation does not mean the concept is bad. As far as I know there is both a strong correlation between compiler significant indentation to general adherence to formalized code style and that same formalized code style to better readability and maintainabili...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

What's the intent here? Choices being mutually exclusive or is it behaving as expected?

I would imagine discord intends to make it mutually exclusive. There's not really a point in having them together since if choices are provided, that's all the user is allowed to input, so min/max doesn't make sense.

I'm surprised they don't kick back with an error when creating/updating a command to include min/max + choices. Weird that they let it through and error when the user attempts to run ...

chilly siloBOT
chilly siloBOT
#

Proper schema still would be very appreciated given that github.com/discord doesn't have official libraries to work with REST, gateway API, etc other than discord-interactions-python which is more or less useless.

Discord piggybacking its bot ecosystem on 3rd party libraries without making their life any easier. It's a complete nightmare to track API evolution through changes in markdown.

Only major changes are described on changelog pages and it is intended. Other than that good lo...

chilly siloBOT
chilly siloBOT
#

Before I start...

From my last discussion[^1] I learned a few things, and want to make a few things clear here.
I do not tolerate any comments with targeted hate towards individuals or groups such as Discord Staff Members or Discord itself. I can understand you being upset sometimes but it doesn't give you the freedom to insult or attack others.
I will report any comment that can be considered insulting towards GitHub for breaking general rules such as Code of Conduct. I want the ch...

#

Hey,

Im currently coding a Moderation Bot and working on a setup command.
And something i would really need is a select menu where you could choose roles/channels. Because currently you are limited to 25 options so if a guild has more than 25 roles is could be problematic to display.

So i got the idea that you just add types to select menus like CUSTOM, CHANNELS, ROLES.

chilly siloBOT
#

Hey everyone. The reason we locked this issue is not because we don't want to discuss these concerns. Verification is an important and impactful topic, and we want to make sure there is a place for you to share your thoughts.

We're having a public Q&A this Friday to talk about whatever is top of mind. We can pull out the questions from this post and answer them then. We encourage you to submit questions (or upvote existing topics) here: [https://app.sli.do/event/b6ftnc2w](https://app.sli.d...

#

Hey everyone. The reason we locked this issue is not because we don't want to discuss these concerns. Verification is an important and impactful topic, and we want to make sure there is a place for you to share your thoughts.

We're having a public Q&A this Friday to talk about whatever is top of mind. We can pull out the questions from this post and answer them then. We encourage you to submit questions (or upvote existing topics) here: [https://app.sli.do/event/b6ftnc2w](https://app.sli.d...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

#Seems like discord is ignoring the fact, you said you we will help developers and getting choices done, but this escalated to someone insulting discord but that's not the others fault and we just want discord to hear our voices, plus you'll be killing discord messages for bots in the future which more developers will leave.
KrAyX Maximum#8080 - YouTuber / Bot Owner I don't expect discord to listen to this. We would rather not have the bots not able to see messages or in slash commands sinc...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

I registered a slash command with an integer argument with the following options:

"choices": [
	{ "name": "first",  "value": 1 },
	{ "name": "second", "value": 2 },
	{ "name": "third",  "value": 3 },
],

if I run a command and select one of those options, then copy paste the command text from the popup and try to re-run the command, it prompts me to select an option again instead of filling in the value.

Steps to Reproduce

  • Register a command...
#

Hostility is not necessary.

The intention of the pop-out is to show the command that was run. The way that this data model is built, the message does not have access to the "human readable" name of the option type. Just the value.

The side effect of that architecture is that copy/paste doesn't work in this case. Which admittedly, is an experience we should support better in general.

That can done by making the change suggested here, or making another way to re-run previous commands.

chilly siloBOT
#

New API endpoints

Intro

Hey, currently there is no endpoint which can fetch all application commands which are located in all of the bot its guilds.
This means that to get all of those commands you'd have to iterate through all of the guilds the bot is in and send a request to the API to get those commands. As this might be fine for small bots, this is not for bigger bots.
![afbeelding](https://user-images.githubusercontent.com/38541241/138154073-81ea2162-8c8b-4fbd-b0ee-3dc3d3e02...

chilly siloBOT
#

Fixes in future API versions would be appreciated. It's not a major issue since its an endpoint designed for oauth (I often forget the /applications). I have not found another endpoint that experiences this yet, I did a little bit of testing of a pretty large set of endpoints before submitting this issue.

I just mention it because I was testing @discordjs/rest behavior of considering the token invalid when receiving a 401, which we believe is per HTTP spec and the dev docs. Might be a misi...

chilly siloBOT
chilly siloBOT
#

Summary

This will, pending client rollouts that will happen soonโ„ข๏ธ, control whether or not users are able to see the "Wave to say hi" CTA. This will be editable in the server settings overview as well (pending the same client rollouts)

image

As a one-time migration, all (most :blobsweat:) servers with over 10000 members will have this suppress default true. This is to prevent di...

chilly siloBOT
chilly siloBOT
#

I was wondering if any information about what a user is currently watching in the new watch together activity would be obtainable through the API. I gathered data through a user's company with the YouTube Together presence, which worked well enough. However, with this new system, there is no way to get information on watch together.

I would love if I could be able to get the currently playing video, the queue, and information such as who queued each video.

chilly siloBOT
#
| Flag                                  | Value  | Description                            |
| ------------------------------------- | ------ | -------------------------------------- |
| SUPPRESS_JOIN_NOTIFICATIONS           | 1 << 0 | Suppress member join notifications     |
| SUPPRESS_PREMIUM_SUBSCRIPTIONS        | 1 << 1 | Suppress server boost notifications    |
| SUPPRESS_GUILD_REMINDER_NOTIFICATIONS | 1 << 2 | Suppress server setup tips             |
| SUPPRESS_JOIN_N...
#
You can also set a `default_permission` on your commands if you want them to be disabled by default when your app is added to a new guild. Setting `default_permission` to `false` will disallow _anyone_ in a guild from using the command except for administrators and guild ownersโ€”unless a specific overwrite is configured. It will also disable the command from being usable in DMs.
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description
For message edit the emoji field for buttons and selects now requires name when it shouldn't (as the other endpoints don't: message create, interaction send, interaction edit)

[Multiple people in the Discord Developers server can reproduce the issue as well](#847167520711639040 message)

Steps to Reproduce
Create a message with or without components
Edit the message with a component and set th...

chilly siloBOT
chilly siloBOT
#

This behavior is intentional. Are you actually connecting to RPC via websocket, or using IPC?

I was running the normal Windows desktop client, and then using the RPC API (via pypresence) to adjust the pan setting for a user; so I assume that'll be via websocket?

Although the user that was broadcasting audio for me to test with was a bot, if that makes any difference.

After I noticed the pan adjustment setting in the API, I was hoping to...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

My bot is built using discord.py. All of its returns are delivered in the form of images. Up until yesterday, the order that the images were added to the list of files to send was maintained when the images were displayed in channel. Something has changed such that they're now being displayed in a randomised order each time.

Steps to Reproduce

Send a list of files to a channel.

Expected Behavior

The order of the files in the list should be maintain...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Right, I just mean an inconsistency in the overall design.

If it's okay to display a loading state to the user for a new message for up to 15 minutes, including after they run a slash command, why not display a loading state on a component for up to 15 minutes?

From the user perspective, they're both things they have to wait for.

It's good to have DEFERRED_UPDATE_MESSAGE as an option, but it's really intriguing as to why they didn't just provide another response type alongside that...

chilly siloBOT
#

Description

When attempting to login to an app using discord for OAuth2 login, after entering username/password, and 2DA code, it will flash the box for allowing for a split second but loop back around to logging in with email.

Steps to Reproduce

Visit web app using discord for authentication on mobile, login, enter 2FA code, hit next, be presented with the email login again.

Expected Behavior

Presented with the accept/dent authorization screen

Current Behavior

Loops ar...

chilly siloBOT
chilly siloBOT
#

Something I feel like could be a useful thing to consider was a general/generic "Mentionable" Option type.
It would essentially allow what the channel type does, which is to define types of mentionables that a user can select.

This is useful for bots offering commands that can target both users and roles as an example. That way could you set the mentionable to accept Roles and Users.

chilly siloBOT
chilly siloBOT
#

At present, Message Components can be used to allow users to engage with a bot's message beyond the simple query-response with Slash Commands. To facilitate the preservation of state these are allowed a custom_id which can be assigned and used to the bot's needs (within the custom_id's 100 character limit).

However these Components are lacking in one key area - if the message they are on was created via an Interaction, there's no way to retrieve the parameters the Interaction was calle...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Due to the message intent policy change, it might be useful to be able to search for slash commands (ie: /<any-command) as it would allow for people to see if commands have been done, or just to search for commands.

Right now we can do this with normal commands which use prefixes, such as:

(Kind of a bad example because it searches for the embed, and the embed title has stats in it, but hopefully you get the idea)

And once slash commands become the norm, it might come in handy ...

chilly siloBOT
#

This discussion will have 2 ideas which both are related to removing a bot from a Server.

1) Display Remove Bot in context menu instead of Kick and Ban

When removing a bot is it currently through either a kick or ban.
Especially the ban seems a bit pointless given that a new invitation of the bot through its OAuth2 link nullifies this ban, so a kick should be the go-to option here.

This suggestion is more about the Client-App and its appearance so it would be nice if that c...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

Profile picture is overlapping the heading of Store distribution Agreement

Steps to Reproduce

Visit https://discord.com/developers/docs/intro
Click on Store distribution Agreement
Observe your profile picture

Expected Behavior

Our profile picture should not overlap the heading of store distribution Agreement

Current Behavior

Our profile picture is overlapping the heading of store distribution Agreement

Screenshots/Videos

ht...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Am hoping to eliminate having to store voice states for every single user on every single channel in every single server just for determining which channel the user left.

Use Case: voice xp leaderboards, server logs etc

Potential Solution:

// User joined a channel
{
  channel_id: "123",
  previous_channel_id: null,
}

// User left a channel
{
  channel_id: null,
  previous_channel_id: "123",
}

// User switched channels
{
  channel_id: "123",
  previous...
chilly siloBOT
chilly siloBOT
#

I think the first idea is a good change and definitely makes more sense for integrations without a bot user attached (read slash command only bots).

Regarding the second change, I believe knowing your bot was kicked/knowing why you're no longer in the server could be a slight issue and could enable some undesirable behaviour. I think if you want to be able to know why your bot was removed for feedback purposes, the bot would need to support a command that accepts a reason and then leaves ...

chilly siloBOT
#

As I said you can provide a /remove command to let people provide an optional reason should they wish to inform the bot and its developer. I am admittedly somewhat cynical, but I can easily imagine people making bots dm you a bunch of feedback related stuff unsolicited -- should they share a mutual server of course -- if they could see you kicked the bot. The reason itself is irrelevant mostly, it's the fact you can see you were kicked specifically.

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

Figured it out, it was because i was using node-fetch to try and make an x-www-form-urlencoded request. It kept failing, but when i used request it worked, so after taking a second look at the node-fetch's docs i realized i should have used URLSearchParams() so here is what i did:

	const options = {
		method: 'POST'
	};

	let params = new URLSearchParams();
	params.append('client_id', myDiscordAppClientId);
	params.append('client_secret', myDiscor...
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

As I said you can provide a /remove command to let people provide an optional reason should they wish to inform the bot and its developer.

Why would they run a command if they can just right-click name -> kick <user>? Barely anyone would ever use this since the kick and ban feature have been become a major part in "removing" a bot from a server, so unless you would directly tell them to use that command instead to give feedback would it not have any real impact.

I am admittedly ...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

I am using a custom scheme (app://myapp) in the redirection of the OAuth2 authorize. As I read in previous issue, to make it work, I have to implement PKCE. I did and I pass a code_challenge and a code_challenge_method to my request and I receive a code on my deep link (app://myapp?code=abcd).
This all work fine. The issue comes when I try to get the token from the code by calling https://discordapp.com/api/oauth2/token.
Instead of the token, I get an HTTP error 405...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Now we can open oauth prompts in-app, this allows us to add bots to servers without entering the web browser.

This feature request proposes a new response_type which sends a http get request to the specified redirect_uri without redirecting the user there. When used in-app, this would allow a user to make an oauth request without the user leaving the Discord client.

In addition, oauth requests made from the Discord client should be able to spawn an interaction event in the channel s...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Issue

Currently, the limit of the lengths for both custom ids and (select option) values is 100 characters each. However, this can be quite short in certain situations, especially when used to maintain state throughout a series of interactions (one of their main purposes as described in the documentation).

Proposal

Preferably, this should be increased to what a slash command is able to send in a singl...

chilly siloBOT
chilly siloBOT
#

Description
For the past 15-20 hours the Header of the Post request for adding a new Emoji or Sticker is not returning the various ratelmit attributes.

Steps to Reproduce
Just make a post request to add a new emoji or sticker and read the header, ratelimit attribute won't be present in the header

Expected Behavior
The header to return the ratelimit attributes

Current Behavior
The header not returning the ratelimit attribute

Screenshots/Videos
![new header ...

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

The /users/@me/guilds endpoint used to send X-Ratelimit headers which a process of my bot used when fetching the list of guilds.

Starting around Oct 27 00:00 UTC, these headers have disappeared, resulting in the process to run into 429. (I've worked around it by manually limiting the amount of requests it can send)

Steps to Reproduce

Make an authenticated GET to /users/@me/guilds or /users/@me

Expected Behavior

X-Ratelimit-Remaining et al. headers should appear

...

chilly siloBOT
#
Autocomplete interactions allow your application to dynamically return option suggestions to a user as they type.

An autocomplete interaction **can return partial data** for option values. Your application will receive partial data for any existing user input, as long as that input passes client-side validation. For example, you may receive partial strings, but not invalid ids. The option the user is currently typing will be sent with a `focused = true` boolean.

> warn
> This vali...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

Steps to Reproduce

When using a slash command with multiple parameters, if you click an autocomplete entry and click submit, it will submit the command using the value you gave it. However if you click an autocomplete parameter, then go edit another parameter it will submit the command with the autocomplete name rather than its value.

Expected Behavior

It should be submitting slash commands with the value set for autocomplete choices, not the name set.

**C...

chilly siloBOT
#

To justify, simply sending the ids of a few objects (guilds, channels, users) within a custom id takes up 18 characters each. Combined with other information passed along in a custom id, this can easily exceed 100 characters in some situations. (For example, some user has a select menu and chooses multiple users, which then updates the message with a panel of buttons to do some action to them (hug, steal their battleship, etc.). Each button would need to store all of the user ids, which r...

chilly siloBOT
chilly siloBOT
#

I can't speak for your specific use case because I don't know your overarching intentions and your underlying architecture.

But the main point of my proposed example approaches was that, you wouldn't need to serialize any of that data if that data is always in the interaction payload that discord is sending you along with the users interaction. Which it would be in the first example. As for the second example, the data would still be in the interaction, you'd just be controlling it a bit d...

#

For my particular usecase, I do not include information already given in the request (yay). The problem with using a temporary cache is that buttons stop working when the application could otherwise support it, so storing all required data inside the custom id becomes desirable.

Say a reaction role, help command message or something else that could easily be made persistent would be helped considerably by having the data being persistent. Luckily for my usecases, I find most of these case...

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

Devs: would removing the RNG portion be acceptable? Is sending it right away without delay fine?

The idea of the initial delay for the heartbeat is to reduce the impact that an outage could have on Discord, as all bots bombarding Discord at the same time would not help to recover. This randomness let's the services recover more gracefully by (in theory) lowering the clients that connect at once

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

Application Command object now returns a null description for context menu commands

Steps to Reproduce

  • Create an application command of type USER or MESSAGE
  • Look at the response of the PUT request, or make a separate GET request and read the response

Expected Behavior
The description should be an empty string

Current Behavior

The description is null

Screenshots/Videos

Exception in thread "main" java.lang.R...
chilly siloBOT
#

This feature would be quite useful in guilds that wish to share bans between them, due to shared ownership and/or ease of moderation.

This feature could be implemented in several ways:

  • Ban lists as channels: In this alternative, a ban list would be a channel type and a guild would subscribe to a list by joining that channel. Reuses existing data structures. The disadvantage is ban reasons could not be reused in such a structure.
  • Bans get IDs: In this alternative, each ban would get...
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Goal

Allow applications to fetch channel and webhook information for a guild with just an access token.

Background

I'm developing an application that allows users to more easily leverage webhooks in their servers to send messages (think: a glorified form with avatar url, name, and content ๐Ÿ˜… ).

The experience I'm imaginging is:

  1. User "Logs in with Discord" and lands on "Send Webhook" page
  2. User selects guild from drop down (populated by /users/@me/guilds) (Can do tod...
chilly siloBOT
#

Goal

Get guild and channel partials as part of the webhooks.incoming payload sent to the redirect URI.

Background

I want to allow users to create webhooks that they can then use in my application. Currently, the friction I'm experiencing is that I can send a user to make a webhook using the webhooks.incoming URL (super cool, btw ๐Ÿ˜Š ), but when the payload is returned, I only get the channel ID and the guild ID.

I can correlate the guild ID by calling the `/users/@me/guild...

chilly siloBOT
#

The problem

Currently, slash and context menu commands take up to an hour to propagate, and repaired on attempt to access.

The proposed solution

It would be far easier to make planned API transistions if this propagation took exactly 3600 seconds, and left disabled until exactly 3600 seconds after registering/changing/deleting the command.

Extra considerations

To allow applications to choose between quick deployment and deterministic propagation delay, this should be ...

chilly siloBOT
#

I can easily imagine people making bots dm you a bunch of feedback related stuff unsolicited -- should they share a mutual server of course -- if they could see you kicked the bot.

Bots can already do this, though.

They can easily keep track of the servers they're in, including receiving an event when they have left a server, which is either the result of a kick, deletion, or their own choice to leave.

They can't see who kicked them, but they don't need to, if they want to be ann...

chilly siloBOT
#

IntelliJ, a major IDE (and to a greater extent, all IDEs made by JetBrains) natively support screen readers.
It would only cause additional accessibility issues if discord decided to ignore accessibility. Like literally, unless you just purposefully decide to ignore it, its not an issue.

And if anything, having code actually formatted increases accessibility and readability. I think its easier to read code when there's highlighting and a defined structure that's supported by screen read...

#

This would be pretty bad and could get very spammy. This was an issue that the unofficial discord bot best practices helped to solve (see number 8 on the list) Part of the push for bots using slash commands and not chat commands is to prevent this from being possible.

Rather, if you would like to hook into another bot, you should see if the developer offers any sort of API for that bot. If they don't offer an API, there might be a pre...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

The docs say dedicated to automation, which kinda contradicts this

@ Danny automating the API in that way /is/ abuse. Automatically doing "X" every N is generally not a good idea. Where X could be posting a message, changing someone's nickname, renaming a role, changing a channel topic, etc...
Generally bots should only react to user actions...
Although, for very large N we generally don't care. But for small N, we do care. Think rainbow bots, etc....

So I think its better...

chilly siloBOT
#

Description
There's a bug for slash command options where when typing some letters out it breaks

Steps to Reproduce
/slash option: on <- this should be enough to reproduce, it also happens with the letter "p" as well

Expected Behavior
For it to let me keep typing my option

Current Behavior
It breaks and doesn't let me type my option (at all) if the starting letter is a certain one

Screenshots/Videos
https://media.discordapp.net/attachments/787359417674498088/...

chilly siloBOT
chilly siloBOT
#

Description
The autocomplete for slash groups always fails to load anything

Steps to Reproduce
Have a slash group with a subcommand (/cmd group subcmd) which has an autocomplete param

Expected Behavior
Shows the autocomplete results

Current Behavior
Doesn't show anything, instead it just keeps loading infinitely

Screenshots/Videos
PC:
https://media.discordapp.net/attachments/787359417674498088/904328241672781834/2021-10-31_13-16-49.mp4

Mobile:
https://media.disc...

chilly siloBOT
chilly siloBOT
#

Description

The api docs say that a user's avatar size can be any power of 2 between 16 and 4096, but 100 also seems to be allowed.

Steps to Reproduce

Fetch a user's avatar and add ?size=100, the avatar will show as size 100.
For other sizes, you see 100.

Expected Behavior

That the documentation shows at least size 100 is allowed, and maybe other sizes too?

Current Behavior

Using ?size=100 shows a user's avatar.

Screenshots/Videos

**Clie...

#

This is not a bug. 100 is in the range 16-4096 and is also a power of 2 (10^2 = 100). Maybe you misunderstood the documentation.

Just to clarify the conditions in case you still don't understand it:

  1. The number you pass to size must be an integer between 16 and 4096.
  2. The number you pass to size must be a power of 2 (in other words, the square root of that number should give a whole number, since we are dealing with integers only)
chilly siloBOT
#

Description
If the speak permission for a role is updated in a voice channel, it is not updated for the members who are already in the channel. They need to leave the channel and reconnect.

Steps to Reproduce
Give a role to some people in a voice channel, add a permission overwrite to this channel, so that people who have this role can't speak.

Expected Behavior
Those people shouldn't be able to speak, because they have a role that forbids them to.

**Current Behavior...

chilly siloBOT
#

Add an OPTION_GROUP slash command option type to allow for better management of option requirements for a command.

Why this is needed

Command option requirements are currently set independent of each other. However, there may be situations where a command may not have a specific requirement but simply requires one or more of several options to be provided.

Additionally, there may be cases where a command has two or more options that aren't required individually but require seve...

chilly siloBOT
#

Description
For many database-driven or computationally heavy slash commands, the documentation recommends we use DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE to acknowledge the command until we can respond. The problem with this is that being able to update a command comes with many limitations after acknowleding, since I believe Discord is considering it an "edit" or "followup" instead of the initial command. Once of the limitations is the infamous edit-mention "bug" (is it a bug?). Even i...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Unlike acknowledging a slash/context command with DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE which requires a message to be sent later, acknowledging an interaction (button presses etc.) with DEFERRED_UPDATE_MESSAGE does not require that the message is actually updated later.

The current wording is a bit ambiguous and resulted in some questions in the Discord Developer server; adding an "optionally" hopefully makes it clearer that a follow up is not required.

chilly siloBOT
chilly siloBOT
chilly siloBOT