#github-notifications

1 messages · Page 7 of 1

chilly siloBOT
#

Description

Could we get some clarification on the new Create Events permission?

As:

  • Any doc about it?
  • How to identify servers that has the permission available?
  • How test the permission, which is ots bitwise value?
  • How it affects event creation?

That being I have been getting a lot of missing permission on scheduled event creations, and I believe is because of this permissions, but there is no doc about it (that I could found).

I only knew about because of this p...

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

Users global name is nullable in the event that a user removes their display name, which causes the field to return null.

{
  "id": "209279906280898562",
  "username": "velvet.toroyashi",
  "avatar": "b3477e5310b7049d1796e866f69bb928",
  "discriminator": "0",
  "public_flags": 4195072,
  "flags": 4195072,
  "banner": "8e01d9d5ffbcecfb8bb6e71ba588426c",
  "accent_color": 1385281,
  "global_name": null,
  "avatar_decoration": null,
  "display_name": null,
  "banner_col...
chilly siloBOT
#

Description

Seems like something is going awry internally - the URL produced is:

https://images-ext-1.discordapp.net/external/wQtvt4O6mERmcoBvetgfegleZZdUgbR-GDpyx2G6sZE/https//images.igdb.com/igdb/image/upload/t_thumb/co1rco.jpg?width=180&height=180

Which seems weird given it has the entire original URL in the new URL (but with the number of forward slashes reduced to 2).

Steps to Reproduce

Attach an image to a message using 4 forward slashes as opposed to 2

Expected B...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

When fetching a user, namely the current user, linked_users is returned, which is especially strange since it's not enabled/returned for my own account, but is for my bot.

{
  "id": "1055294262184509460",
  "username": "Kobalt",
  "avatar": "b9f018710c05cbaf6e9175a56e140e35",
  "discriminator": "3822",
  "public_flags": 524288,
  "flags": 524288,
  "bot": true,
  "bio": "",
  "locale": "en-US",
  "mfa_enabled": true,
  "premium_type": 0,
  "linked_us...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

hi im back

New permission flags:

  • CREATE_GUILD_EXPRESSIONS: 1 << 43
  • CREATE_EVENTS: `1 Bots currently still use the old permission system, unless they send a recent X-Super-Properties header. This PR does not reflect this fact and only documents the new system.

Other notes:

  • The client incorrectly allows you to create events if you have MANAGE_EVENTS but not CREATE_EVENTS, but the API rejects the request.
  • For bots with CREATE_GUILD_EXPRESSIONS but not `MANAGE_G...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Hey @advaith1

I was the engineer who worked on the permissions split. I'm going to address your notes to:

  1. Patch the UI bug allowing you to go through the create event flow if you only have MANAGE_GUILD_EXPRESSIONS
  2. Make the GET Guild Emoji endpoint consistent with the other endpoints.

I'll give you a re-review once these are both addressed and we update the docs accordingly.

chilly siloBOT
#

Description

When copying a command, the application/x-discord-interaction-data is copied, but when pasting it, it does not select the command if there are multiple commands with the name. The copied data should make the client select the command that was copied. This worked before but broke.

Steps to Reproduce

  1. Use a command when there are multiple commands with the same name in the channel
  2. Click the /command text and triple click the popup, then copy the command
  3. See th...
chilly siloBOT
#

Description

I am getting discord.errors.HTTPException: 401 Unauthorized (error code: 0): 401: Unauthorized and discord.errors.LoginFailure: Improper token has been passed. when creating a bot. The token should be correct. Here is my code

import discord

from discord.ext import commands

print('haha')
client=commands.Bot(command_prefix='.')
@client.event
async def on_ready():
print('bot is ready')
@client.command()
async def hello(ctx):
await ctx.send('Hi')

Token="MTEz...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

I am writing to request the addition of support for retrieving a user's bio and/or pronouns through privileged intents in Discord's API. With the recent introduction of a new profile field for pronouns, it would greatly benefit bot developers to have access to this information, enabling them to provide enhanced features and functionality to Discord users.

Use Cases:

  1. AI Bios Moderation: Bots are commonly used for content moderation, including scanning and filtering user-...
#

While I dislike how AI/LLM-focused this suggestion seems to be with its possible use-cases - I do like the idea of allowing Bots access to Pronouns Field for Bots to use in their responses or to help with moderation of the Pronouns Field (since there are a LOT of people abusing that Field for malicious text just because it's labelled as a Pronouns Field).

#

I focused my message mainly on AI chatbots because Clyde AI does already have access to that information. But as you said, it's not the only option. There are possibilities for other uses of the Pronouns field such as providing bots with access for both answering users' questions, as well as helping with the moderation of the Pronouns field in order to prevent malicious use of the field, as you said.

chilly siloBOT
chilly siloBOT
#

Bumps word-wrap from 1.2.3 to 1.2.4.

Release notes
Sourced from word-wrap's releases.

1.2.4
What's Changed

Remove default indent by @​mohd-akram in jonschlinkert/word-wrap#24
🔒fix: CVE 2023 26115 (2) by @​OlafConijn in jonschlinkert/word-wrap#41
:lock: fix: CVE-2023-26115 by @​aashutoshrathi in jonschlinkert/word-wrap#33
chore: publish workflow by @​OlafConijn in jonschlinkert/word-wrap#42

New Contributors

@​mohd-akram made their first contri...

chilly siloBOT
#

I feel uncomfortable with the idea of placing this as a privileged intent knowing that.

  1. Pronouns and biographies are subject to contain sensitive personal information (by definition).
  2. That bots would have the ability to literally scrape every member's bio.
  3. There is no way for Discord to enforce the policy of collecting and storing user data retrieved through third-party bots. This also raises some GDPR questions (to be verified).

What's more, Discord doesn't currently display...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

I feel uncomfortable with the idea of placing this as a privileged intent knowing that.

  1. Pronouns and biographies are subject to contain sensitive personal information (by definition).
  2. That bots would have the ability to literally scrape every member's bio.
  3. There is no way for Discord to enforce the policy of collecting and storing user data retrieved through third-party bots. This also raises some GDPR questions (to be verified).

What's more, Discord doesn't currently display...

chilly siloBOT
chilly siloBOT
#

Hi, I can reliably reproduce this. This used to work. I believe this is an artifact that our bot has "Discord" in its name... but I don't think this restriction should exist on interactions in the first place?? Hopefully this is just an accidental carryover from webhook logic?

See https://sentry.bots.gg/share/issue/86a635e234f742aaaf095432b6bc424c for a full stack trace.

chilly siloBOT
#

sorry to open this topic again, but It looks like the error still exists in some server threads
This is the only server I'm getting this error on at the moment

{"rate_limit_per_user":0,"owner_id":"690941835455234070","flags":0,"type":11,"message_count":10,"total_message_sent":10,"last_message_id":"1121195959192399952","parent_id":"989561638355083284","name":null,"guild_id":"951202036223995956","thread_metadata":{"archived":false,"archive_timestamp":"2023-06-18T21:21:36.611022+00:00","crea...

#

sorry @infinitestory to open this topic again, but It looks like the error still exists in some server threads
This is the only server I'm getting this error on at the moment

{"rate_limit_per_user":0,"owner_id":"690941835455234070","flags":0,"type":11,"message_count":10,"total_message_sent":10,"last_message_id":"1121195959192399952","parent_id":"989561638355083284","name":null,"guild_id":"951202036223995956","thread_metadata":{"archived":false,"archive_timestamp":"2023-06-18T21:21:36.6...

chilly siloBOT
#

Feature Proposal:

In light of recent advancements in artificial intelligence, more specifically Language Models (LLMs), the way we interact with chatbots is rapidly evolving. One notable advancement involves the capability of LLMs to generate outputs not as a complete text block, but in a character-by-character, stream-based format. This reflects a more organic, human-like conversation flow, which could revolutionize the expected behavior of chatbots.

The aim is to deliver this dyna...

chilly siloBOT
chilly siloBOT
#

Description

If you publish a message (in an announcement channel) that has components, the messages ending up on the subscribed servers don't have any components.

User story: I want to use link buttons in messages because they look better and are more noticeable than regular text links, but the fact that they don't get published means that servers subscribing to the announcement channel can't see the link. This is a problem.

My suggestion: Make the published message also include th...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

My server had access to this experiment early on, so it has some pretty old media channels. This doesn't apply to any new media channels I create, but older ones appear with type GUILD_FORUM with the flags field set with the 1 << 10 bitwise operator. Additionally, webhooks are fully functional in these older ones, and appear on the client, regardless if any are created. This is not true for recently created media channels.

Thank you reporting this. Just to confirm, you're saying we...

chilly siloBOT
#
A `GUILD_MEDIA` (type `16`) channel is similar to a `GUILD_FORUM` channel in that only threads can be created in them. Unless otherwise noted, threads in media channels behave in the same way as in forum channels - meaning they use the same endpoints and receive the same Gateway events. More information about media channels and how they appear in Discord can be found in the [Help Center Article](https://creator-support.discord.com/hc/en-us/articles/14346342766743).
#

I think it's not ideal to use the term "thread-only channel" without really explaining that it's referring to Forum and Media Channels. This might add additional confusion, especially given that in other places this is not abbreviated in this way.
Maybe the Forum and Media channel sections could be grouped under a "thread-only channels" section to make the definition more clear.

#
Add the [`GUILD_MEDIA` (16) channel type](#DOCS_RESOURCES_CHANNEL/channel-object-channel-types). `GUILD_MEDIA` channels only support threads, similar to `GUILD_FORUM` channels.

Read the [media channel documentation](#DOCS_TOPICS_THREADS/media-channels) for more information on the implementation and technical details, or the [media channel Help Center Article](https://creator-support.discord.com/hc/en-us/articles/14346342766743) for more about the feature.

The second paragra...

chilly siloBOT
chilly siloBOT
#

@advaith1
Following up with you.

  1. Should be fixed now
  2. I'm not going to change the current API behavior because I think it's designed as intended.

However the behavior around fetching is slightly more complicated. To clarify, this is what happens:

  • GET - List Guild Emojis
    • If bot, we return you a list of emojis uploaded by the bot (don't need to serialize user here since all the emojis should belong to the bot)
    • if not bot, we return you all guild emojis and seriali...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Background

Many Discord bots display information publicly, such as profile messages.

Others are dedicated to search and systematically display ephemeral messages dedicated to and personalized for the user. These ephemeral messages are generally based on the user's profile, language or search query.

In my previous suggestion, I suggested an internationalization system for bot embeds. This was mainly motivated by the possibility of internalizing the static welcome, presentation and ...

chilly siloBOT
#

There should be a way to customize the "Application did not respond" message with a plain-text message. For example, if my bot crashes due to an error and a user tries to use a command. I should be able to tell them to join the Discord server for support on why it's offline.

User: /help
Response: "Hey! Sorry, I'm currently experiencing difficulties etc. Join the Discord server for support: "

It'll still be highlighted in red with the exclamation mark but with the custom message. Sorry ...

#

Description

Putting a number in the hover text for a masked link in a bot embed completely breaks the rendering for that link, producing a massive bit of gibberish instead of the expected link.

Steps to Reproduce

  "embeds": [
    {
      "title": "[google](https://google.com 'This is the 1st link to google.')"
    }
  ]
}' https://discord.com/api/webhooks/WEBHOOK_ID/WEBHOOK_TOKEN```

### Expected Behavior

This SHOULD...
chilly siloBOT
#

I completely understand your concerns, especially if you haven't experienced chatting with a Language Model (LLM) via Discord before. To give you a better idea, imagine waiting for a large block of text to appear all at once in a chat conversation. You are waiting and waiting and then you need to scroll up to start reading. This lack of a natural flow can make the interaction feel less interactive and more like reading a wall of text.

Now, in terms of potential solutions, one might think o...

chilly siloBOT
#

I completely understand your concerns, especially if you haven't experienced chatting with a Large Language Model (LLM) via Discord before. To give you a better idea, imagine waiting for a large block of text to appear all at once in a chat conversation. You are waiting and waiting and then you need to scroll up to start reading. This lack of a natural flow can make the interaction feel less interactive and more like reading a wall of text.

Now, in terms of potential solutions, one m...

chilly siloBOT
#

What you say about the friction associated with the need to scroll at the beginning of the message makes perfect sense in this context. After reading your post, I've drafted a new suggestion that might be of interest to you in your use case, and which would be a longer-term solution for other bots and not just chatbots. https://github.com/discord/discord-api-docs/discussions/6313

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

On mobile, after exiting a channel and reopening it, slash command errors always say "The application did not respond", even if the error was actually different.

Steps to Reproduce

  1. Run a slash command and provide an invalid user ID (or run into the webhook case of #6316)
  2. See the error message
  3. Switch channels and go back
  4. See the error message

Expected Behavior

It still says
![image](https://github.com/discord/discord-api-docs/assets/11778454/baae53f...

chilly siloBOT
#

Description

In https://discord.com/developers/docs/interactions/message-components textinputs is very brief and seems to missing information that the other components offer. How many text inputs per action row, how many action per modal, what components aren't allowed in a modal, what are modal limitations. Also when viewed in some web browsers the text input styles are cut off only listing short as an option. This is mostly on moble platforms as the bottom of the page is cutoff. I was ...

chilly siloBOT
chilly siloBOT
#

My server had access to this experiment early on, so it has some pretty old media channels. This doesn't apply to any new media channels I create, but older ones appear with type GUILD_FORUM with the flags field set with the 1 << 10 bitwise operator. Additionally, webhooks are fully functional in these older ones, and appear on the client, regardless if any are created. This is not true for recently created media channels.

Thank you reporting this. Just to confirm, you're say...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Disadvantages

For users, none, but advantages.

What about server moderators? Depending on the bot's features, it may be a good idea to let moderators see what users are doing with the bot. For example, if a bot stores a string that can be retrieved later, and the bot has not implemented a method of notifying server moderators that this string was added, people may use that to add stuff that's against the server rules or Discord's TOS.

chilly siloBOT
chilly siloBOT
#

how are they too limited exactly?

It's necessary to understand the needs mentioned, as well as the alternatives considered, to understand how this feature serves a different purpose from the features already offered by discord.

The forums and functionality proposed here serve two very distinct purposes that are not interchangeable. Here we're talking about search bots and the need to improve accessibility and user experience when using forms in a search context.

Imagine a bot that refere...

#

Unless I misunderstood, this is off topic.

Users can already use bot commands via slash commands without moderators being able to see the commands they have executed (if the response is ephemeral). Fortunately for the privacy of users elsewhere.

Unless the bot displays a public message containing the data that the user transmitted to it via your server, this transmitted data does not concern your server. Data sent to bots is no longer subject to Discord's usage policies but to the usage po...

#

I'm curious to know on what basis you judge that the use of this feature would necessarily be malicious?

How can you claim that by starting your first sentence with the statement that you didn't take the time to read the explanations.

There are already less ergonomic alternatives that are used by more than 1/3 of bots on discord (based on app discovery). Are you going to say that all these bots, including the Soundcloud and Netflix bots, are malicious? Midjourney too?

Your answer makes no ...

chilly siloBOT
#

Users can already use bot commands via slash commands without moderators being able to see the commands they have executed (if the response is ephemeral).

But you propose that messages in this channel type are ephemeral by default - meaning that messages that should be non-ephemeral may end up being ephemeral anyways if the bot isn't expecting this channel type. That can cause a whole load of problems, including problems with server moderation, as well as difficulties in figuring out w...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

I believe that at this point most human moderators can be replaced with discord automod, thus negating any moderation concerns.

AutoMod doesn't catch everything. Automated Moderation tools, including with 3rd party Bots, are never going to be a 100% replacement for human, manual, moderation.

Thus, it's always best to have human moderators as a just in case.

chilly siloBOT
#

Description

An id field is required when creating an onboarding prompt. The only way to create a new prompt is to pass a nonexistent snowflake in the id field.

Steps to Reproduce

curl -L -X PUT "https://discord.com/api/v10/guilds/guild_id/onboarding" -H "Content-Type: application/json" -H "Authorization: Bot Token" -d "{\"prompts\":[{\"title\":\"Title\",\"options\":[{\"title\":\"Title\",\"role_ids\":[\"role_id\"]}]}]}"

Expected Behavior

The id field is not req...

chilly siloBOT
#

Hey! I was using a browser to play around with attachments and attachment URLs, and I noticed that some types of attachments seem to have permissive cors (mostly images which is very useful) and others (text files) have no CORS headers at all. I was wondering if this could be documented somewhere, if it isn't already and i've just missed it several times? Thank you!

chilly siloBOT
#

So does modals have there own page? Because I would like to know the limitations, is it the same as messages allowing only 5 action rows? Does it allow the use of embeds, I just feel like the modal is very unknown own. I understand it does belong with components but it's mentioned there should At least have a link for its respective page. Yeah I haven't seen this page before on modals I see the page now I was unable to find this before and searching doesn't work well on android

chilly siloBOT
#

I set up my server a while back with reaction roles following a tutorial, but now I kind of want to update the look of these questions. I had no problem until I realised that in the react roles channel I used one webhook for ALL of my questions and the only one I managed to change was the most recent one (Im guessing its because the webhook is now only linked to the last one I made). Whenever I try to paste the webhook link and the message id for the other questions I get presented with a "Th...

chilly siloBOT
#

I suspect, I am facing the same issue on a server I run - almost all of our users can use slash commands both in DMs and server channels but we have a few users (at least one confirmed) who are unable to see/use commands in DM.

  1. Legacy chat input disabled
  2. User can see and use commands in server channels
  3. User can't see commands in DMs (https://cdn.discordapp.com/attachments/1051530970152575056/1133320432045543516/Screenshot_20230725-044926.png, https://cdn.discordapp.com/attachmen...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

I'm curious: what usecase do you have where autocomplete results will be invalid within 30 seconds?
I'm using autocomplete as a way to search a database for an entry to make changes to it which could include deleting entries or adding new ones that would also come up with a common search say for example books. Many books have the same author so if people wanted to search for a book by author and a new one is added that new result wont come up when they go to make changes to it.
I wrote al...

chilly siloBOT
#

Description

Creating a channel with newlines in the topic ends up dropping the newlines, however the exact same request updating the channel will correctly update the topic.

Steps to Reproduce

body:

{
   "type":0,
   "name":"foo",
   "topic":"foo\nbar\ncake"
}

Create Channel:
curl -H @.headers -d @body -X POST https://discord.com/api/guilds//channels

Update Channel:
curl -H @.headers -d @body -X PATCH https://discord.com/api/channels/

###...

chilly siloBOT
chilly siloBOT
#

Description

Keyboard navigation has a set of shortcuts that can be done on focused messages, including ctrl/cmd C to copy the message content. Since keyboard navigation was added, this feature has never worked on Windows or Linux, though it works on Mac. I assume it only checks for the cmd key, not the ctrl key.

@IanMitchell told me to make a GitHub issue for this

Steps to Reproduce

on Windows/Linux:

  1. press tab to enter keyboard navigation
  2. press up to focus the last mes...
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

The problem here is that the application's name contains Discord in it. There are a number of things that are disallowed in Application names now as we updated the validation to match validation around bot names / usernames.

This can effect a number of places that end up trying to serialize the application or the application's name and thus fail the validation.

The fix here is rather simple: Update the application's name to pass validation. This can be done in the application's sett...

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

I am curious how many people run into the case I did where I assumed it caches for a set amount of time, but it actually only caches for as long as the / command is up and once you delete all the text or send the command that cache clear again for the next command. when I was testing and restarting the bot I would just keep backspacing in the autocomplete and was missing results for that reason. The caching built in is actually quite reasonable for the event someone types and backspaces it do...

#

(Coming over from #6322)

Interaction followups seems to have a very low global (or guild scoped) ratelimit. This is particularly bad for high frequency applications which use followups.

The limit was tested to be 30/60s per guild/global (hard to test) as per #2701 from 2 years ago. This becomes a bottleneck if the application is being spammed, and other users have to face delays.

There shouldn't be a global ratelimit to this at all. It should be per-interaction only. Those can be s...

chilly siloBOT
#

I recently rewrote my bot from using a gateway connection to purely using Discord's REST API due to scalability and reliability problems once it passed ~90 thousand servers.

In doing so, I've had to drop one command that relied on getting the nick/global/usernames of people connected to a particular voice channel. My bot previously used gateway events to know who was in a voice channel, with the Presence Intent enabled.

My request is for the ability to get the guild members currently co...

chilly siloBOT
#

For the POST and PATCH methods for sending/editing webhooks, it would be useful to be able to opt-in to automod rule filtering.

Right now, there's no good way to cache rules on startup (GUILD_CREATE does not include them), and even if there was, we cannot support the built in rules set (spam/common flagged words).

For those two methods, I'd want a boolean field for opt-in to automod, with the message being rejected in case it's blocked.

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Why is it possible to get a user's locale only in endpoint users/@me? Bots can't interact #928 #3988 with this endpoint because for this you need to pass OAuth 2.0

But even if you do OAuth 2.0, you can only interact with the developer account.

Getting locale in endpoint users/{user:id} would be useful for bot developers to use localization (ex. i18n) for each user.

**_P.S...

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

Autocomplete for the text fields inside a modal would be very useful and quite versatile.

I have a use case where I want to configure and setup how certain commands in a server function such as what channel a command can be run in or what role is required to run a command.

Autocomplete would add a new level of user-friendliness to bots and expand the use cases for modals. The modals are a very friendly way to get user input and could be improved.

chilly siloBOT
#

Description

Metadata appeared in the get invite response a couple of weeks ago because of model consolidation for the upcoming api spec. but has vanished again, i believe this to be a bug and thus should be returned to the get invite response. Thank you.

Steps to Reproduce

Use the GET invite route

Expected Behavior

Should have metadata

Current Behavior

No metadata

Screenshots/Videos

No response

Client and System Information

N/A

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

I have a bot that needs to access the message history of a channel. While the interaction.channel.messages.fetch doesn't throw any errors, the content of every message except the bot's own is empty string.

Steps to Reproduce

import "dotenv/config";
// Require the necessary discord.js classes
import { Client, Events, GatewayIntentBits, REST, Routes, SlashCommandBuilder, } from "discord.js";
// Create a new client instance
const client = new Client({ intent...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

When you try making a bot that posts instruction messages on every new forum post, the API returns the following error:

{
  "code": 40058
  "message": "Cannot message this thread until after the post author has sent an initial message"
}

Handling this from the bot perspective seems janky. Would it be possible for discord to handle this more gracefully, potentially by giving it a few seconds before returning an error?

The [Documentation](https://disco...

chilly siloBOT
#

I have this error, when a Thread channel is created in a forum, my bot posts a message in that channel. Once every 5-6 new threads, this error is launched, for now I'm trying to solve it by setting a second of delay so that the instant the thread is created, the bot waits for it to actually be created, so that then when it tries to send the message, don't give the error, because when creating a channel the bot could try to send the message too early and therefore give the error.

chilly siloBOT
chilly siloBOT
#

Well, I'm not 100% clear on the distinction. In the link you sent:

Maintaining a stateful application can be difficult when it comes to the amount of data your app is expected to process over a Gateway connection, especially at scale. Gateway intents are a system to help you lower the computational burden.

It didn't seem like what was happening on my end was "lowering my computational burden." I was silently being denied access to information that I was requesting.

A few points that ...

chilly siloBOT
chilly siloBOT
#

Well, I'm not 100% clear on the distinction.

Permissions are determined by the bot's roles and channel overrides, and are different in every server and channel. They work the same for users and bots.

Intents are global for the bot's connection. Bots send a list of the intents they want when connecting to the gateway, and Discord won't send events from the intents you don't want. 3 of the 19 intents are privileged, meaning

  • small bots need to enable them in the dev portal to use them...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

@pr0stre1 Hey,

without spending too much time trying to replicate your issue, I cannot seem to do so. Everything seems correct to me, based on the code you've shared.

I think your next logical step would be to debug further and try to locate where the flow stops. Make sure that window.addEventListener("message", (event) => {}) is actually triggered, and the postMessage is sent.

Check your console in the popup. Maybe there are some hints/errors there?

Sorry I can't be of more h...

chilly siloBOT
#

I'm pretty sure this means the model has an optional key, rather than that /applcations/@me is returning a partial.

Here's the specific response I got:

Response JSON, prettified

{
  "id": "704355647164252191",
  "name": "A5scissors",
  "icon": null,
  "description": "dont mind me",
  "type": null,
  "bot": {
    "id": "704355647164252191",
    "username": "A5scissors",
    "avatar": "6062401c5ee7b22a788182b2def8eb89",
    "discriminator": "8326",
    "public_f...
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Wouldn't every field being marked as optional be more consistent than a
redundant admonition?

On Tue, Aug 8, 2023, 13:18 Oliver Wilkes @.***> wrote:

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

In docs/interactions/Application_Commands.md
https://github.com/discord/discord-api-docs/pull/6343#discussion_r1287433956
:

@@ -1077,24 +1077,21 @@ Fetch a global command for your application. Returns an [application command](#D

...

#

If a field is nullable, that null value becomes the default is what the
above comment was meant to signify. Optional fields is only a thing for
sending

On Tue, Aug 8, 2023, 13:25 advaith @.***> wrote:

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

In docs/interactions/Application_Commands.md
https://github.com/discord/discord-api-docs/pull/6343#discussion_r1287441276
:

@@ -1077,24 +1077,21 @@ Fetch a global command for your...

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

@andretran I'm confused, your comment doesn't describe how the API currently works or ever worked. The list emojis/stickers endpoints always returned all emojis/stickers, even ones created by other users, and bots rely on this behavior. There has never been separate behavior for bots on that endpoint AFAIK. The list endpoints have also always returned user objects as long as you have Manage Expressions.

Get Guild Emoji is still giving me responses inconsistent with the other 3 endpoints I ...

chilly siloBOT
#
## Activity State for Bot Users

#### Aug 8, 2023

The `state` field in [activity objects](#DOCS_TOPICS_GATEWAY_EVENTS/activity-object) can now be set when [updating presence](#DOCS_TOPICS_GATEWAY_EVENTS/update-presence) for a bot user. The value of `state` will appear as a custom status for the bot user when an [activity's `type`](#DOCS_TOPICS_GATEWAY_EVENTS/activity-object-activity-types) is set to `4`, or as additional data under an activity's name for other activity typ...
chilly siloBOT
#

Description

Hey,

There seems to be an issue with RPC where when you receive events (like MESSAGE_CREATE / MESSAGE_UPDATE) the author field does not contain "global_name" while anyone in the mentions array does have the "global_name" field

Heres an example

{
  channel_id: '545962576098361372',
  message: {
    id: '1138959569012408420',
    content: '',
    content_parsed: [
      {
        userId: '379781622704111626',
        channelId: '545962576098361372',
 ...
chilly siloBOT
chilly siloBOT
#

Description

As any people who spend some time in ddevs can see, support agents currently ignore intents requested when applying for verification for a bot (apparently because this part of the verification form is outdated). Users have to reapply for intents separately after verification.

This confuses users because they already applied for these intents.
IMO, it's also a bit disrespectful to just throw in the bin a form that people have taken time to fill in.

The verification form...

chilly siloBOT
chilly siloBOT
#

Description

An accessibility/contrast issue exists when a default Discord avatar picture is present on the "Bot" page of an Application, since the "Select Image" text overlayed on the photo does not put some kind of dim or shading behind it when hovering on the avatar.

Steps to Reproduce

  • Go to the Discord Developer Portal
  • Create a New Application
  • In the "General Information" tab, hover over the default Discord avatar it has and...
chilly siloBOT
#

Description

The embed color does not reset if you check one URL with a theme-color set and then check one that doesn't

Steps to Reproduce

  • Open the embed debugger
  • Enter a URL that has a theme-color set and shows a color when sent in Discord
  • Enter another URL that does not have a theme-color set and shows no color when sent in Discord

Expected Behavior

The color from the previous URL will disappear

Current Behavior

The co...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

I'll also create a ...

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

Description

I am seeing permission overwrite edits directly after channel creation being swallowed. In my bot I am creating a channel - specifying no permission overwrites so that they are inherited from the category - and immediately after receiving the channel ID, editing its permission overwrites.

This causes the second request to fail silently and the edit to not take into effect.

Steps to Reproduce

  1. [Create a text channel](https://discord.com/developers/docs/resources/gui...
chilly siloBOT
#

Checking again the RFC 6749 Section 2.3.1, both methods can be supported by the server, but the RFC discourages including the client_id/secret in the body:

Including the client credentials in the request-body using the two parameters is NOT RECOMMENDED and SHOULD be limited to clients unable to directly utilize the HTTP Basic authentication scheme (or other password-based HTTP authentication schemes).

So for consistency, i...

chilly siloBOT
chilly siloBOT
#

Description

Application owned webhooks can't send messages consisting of just components. (DiscordAPIError[50006]: Cannot send an empty message)

This is in contrast to normal messages send as a bot user, which can be just a component.

The API docs also shows a note indicating just components should work, however the JSON/Form Params table only says "one of content, file, embeds". (also note it saying "file" in...

chilly siloBOT
chilly siloBOT
#

Just leaving this here - you can configure the accent color on your servers "Promo" page (seems to be a new unreleased feature but is publicly visible).
image
("Buttonvorschau" = Button preview)

While it's a different team developing this features, it's another thing which makes the a11y point seem invalid.
We don't need at all of them, but having all of them wouldn't hurt and prevents u...

chilly siloBOT
chilly siloBOT
#

We got a reply on Discord: #api-questions message cc: @Sebola3461 @mr-tech @Alex134831
@jkcailteux mentioned bot functionality should be reserved, and the issues with markdown should be resolved

A different employee, @DV8FromTheWorld, confirmed that they made a separate change that affects embeds and that there should be no expectation that this change will be rolled back.

For the record, I strongly dislike...

#

Description

Animated APNG stickers are not animated in Discord when they are sent via URL.

Steps to Reproduce

  1. Get the URL of an animated sticker. For example, https://cdn.discordapp.com/stickers/818598476883165194.png
  2. Visit the page to make sure the sticker is animated.
  3. Copy the URL into Discord or send it using a Discord bot.

Expected Behavior

The animated sticker should also be animated in the chat and in embeds.

Current Behavior

The animated sticker is a s...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

You've necro'd an old issue that has already been resolved.

Permissions for individual slash commands (as well as defaults for a specific bot) are managed by server owners under Server Settings -> Integrations -> Bots and Apps.

You can set the default_member_permissions to 0 to restrict a slash command to admins only, letting server admins determine who can use that command (basically...

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

Description

The channel picker component works for forum posts created after the bot was added, but ones created before simply don't appear when searching with the post's title.

I can’t test it on regular threads because the server had none created before the bot was added.

Steps to Reproduce

  1. Create a post/thread
  2. Add the bot
  3. Create another post/thread
  4. Make the bot send a message with channel component with threads enabled
  5. Search the second post/thread in the ...
chilly siloBOT
#

Hi, I'd like to request a freature.
We make software and our engineers love using a discord server to collaborate for work.
From a company security angle though, we have a need to ensure that membership to that server is limited to employees and we are in control of stuff like password policies and suchlikes. In particular automatic provision/deprovision of users on the discord server (commonly implemented with SCIM protocol) and log in with centralised company accounts (SSO - commonly SAML...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

I cannot repro this.
I followed the following:

  1. create a new server
  2. create a forum channel named adasdasd
  3. created a forum post titled i tried
  4. added bot with /channel-select command
  5. executed the comment
  6. clicked on the select and I observed both the forum channel and the post in the forum channel as options

<img width="252" alt="image" src="https://github.com/discord/discord-api-docs/assets/1479909/d3d2752a-4ee6-4ffe-9f59-e4eb9ae68a46">
<img width="592" alt="im...

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

PLEASE strongly consider adding a webcam flip/rotate function.

This is such an easy and key setting that most-to-all other web streaming and video conferencing applications already offer.

Many of your users, such as myself use capture cards to stream console gaming and the feed comes through flipped horizontally as standard.

Alternatively , some also stand to benefit as they mount their webcams in particular ways such as upside down and would reply on this option to rectify the view....

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Forum posts sometimes need to be organised, which mostly happens with discord bots now. For example to keep a forum's topic, bots are a valuable option for generating on-topic discussions on a community. Which is why my request is...

Replace the "create post" option to let bots post modals they can receive and manage!

It can work like a button which only responds with modals, or a simple modal interaction but the bots register the modal on the forum permanently for their needs. This...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

Despite having photos uploaded and set for app and bot PFP's, ALT Text on them shows "No file chosen" when hovering.

Steps to Reproduce

  • Go to the Discord Developer Portal
  • Create a New Application, or go to an existing one with PFP's set for the App and the Bot attached to the App
  • In the "General Information" tab of the Application, hover over the user-uploaded asset for the Application's "Icon"; noticing the ALT Tex...
chilly siloBOT
#
You can now select roles other than admin when inviting users or configuring members of a team. There are four [role types](#DOCS_TOPICS_TEAMS/team-member-roles-team-member-role-types) that a team member can be assigned to: owner, admin, developer, or read-only. The team member object now has an additional [`role` field](#DOCS_TOPICS_TEAMS/data-models-team-member-object), which is a string representing the member's current role.

And probably should mention that permissions ...

chilly siloBOT
chilly siloBOT
#

This alt-text comes from the underlying file upload input.
While there may be a file already saved and being used for the bot/app, the upload control represents the current state of the upload control to accept a new file.

As such, the alt-text being "No File Chosen" is accurate. Once you upload a new file, the alt-text will change.

Icon already set

<img width="411" alt="image" src="https://github.com/discord/discord-api-docs/assets/1479909/44e4c714-9a4d-4d97-a308-1cea734c1c4b...

chilly siloBOT
chilly siloBOT
#

Adds super-reactions related event members missing from #6056
Was originally a PR to #6056 in https://github.com/Mateo-tem/discord-api-docs/pull/1, but #6056 was just recently merged before the author of #6056 merged my PR.

I have observed these super-reaction related members in the MESSAGE_REACTION_ADD and MESSAGE_REACTION_REMOVE events as demonstrated below:

Add and Remove Screenshots

![Screenshot_20230714_133238](https://github.com/Mateo-tem/discord-api-docs/assets/5211576/b96...

chilly siloBOT
chilly siloBOT
#

Description

I'm using the Discord Game SDK. I added lobby creation to my code, but the error CS1061 and CS1628 happens

Steps to Reproduce

Code:

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Discord;

public class DS : MonoBehaviour
{
	public Discord.Discord discord;
    void Start()
    {
		discord = new Discord.Discord(CLIENT_ID, (System.UInt64)Discord.CreateFlags.Default);
		CreateLobby();
        var activ...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

The Interactions Endpoint URL is still unlocked for readonly.

It will throw a 403 on save, but validation still happens.

Application Testers seems to fail to load completely for read-only users.

Steps to Reproduce

Expected Behavior

Field should be r/o like the others

Current Behavior

Screenshots/Videos

image

Client and System Informat...

#

When using Discord's RPC feature, we are able to set things like the title, description, elapsed time, etc... for our application, but when the activity is shown on Discord, the header text will always say "PLAYING A GAME", after which our custom data is shown.

If we look at the activity of Spotify, that text will instead say "LISTENING TO SPOTIFY", indicating that the text is changeable.

Why are we not able to change this text through RPC? When developing applications that are not ga...

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

The issue was locked, but the issue persists: https://github.com/discord/discord-api-docs/issues/1600

At some point the user-agent was upgraded to "Mozilla/5.0 (Macintosh; Intel Mac OS X 11.6; rv:92.0) Gecko/20100101 Firefox/92.0"

Cloudflare shows requests with agent "Mozilla/5.0 (compatible; Discordbot/2.0; +https://discordapp.com)" as a verified bot, but not the Firefox agent used by image fetches. As a result when using bot management, link embed will be fetched, but the image will n...

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

Description

Whenever I try to serve autocomplete integer value of 2^53 or above, it fails as expected. However doing a value right under it (Example: (2 ^ 53) - 1 9,007,199,254,740,991) makes it say that the value is not an int value. When using a command with integer as an option without autocomplete, it works as expected.

Steps to Reproduce

Command

{
	"type": 1,
	"name": "test_autocomplete",
	"description": "No description provided.",
	"options": [{
		"name"...
chilly siloBOT
chilly siloBOT
#

Hey,

Got the idea of adding the bot icon to slash command mentions, it would help to know quickly from which bot the command is.
Tho, might add a condition where if it's the bot itself that mention his own command, remove that icon.

It would have the same behavior of message mention where if it's in the same server it only display channel name and if it's out it display the icon + server name (not sure bot name is interesting there).

Would look like this:
![2023-08-29_6623](https:/...

chilly siloBOT
chilly siloBOT
#

I'm working on a bot that monitors an external service for some event. Users in a server can choose to subscribe to the bot, in which case the bot assigns them a specific role, and then mentions that role when the event happens.

I thought I might allow the server administrator to configure which role gets that assignment. So I created an Application Command that takes an option of "type": 8 to accept a role. Among the auto-complete list of roles the user can select from is the managed ro...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Hey @yonilerner, thank you for replying.
It does indeed look correct, however I now realise from your response that you are using Stable Discord while I am using Canary, took the time to install Stable and test it there, and was able to get a correct response as of what you presented above.

Made a short video here of me using Canary client and bug being present there just in case. Should have attem...

chilly siloBOT
#
Post a typing indicator for the specified channel, which expires after 10 seconds. Returns a 204 empty response on success. Fires a [Typing Start](#DOCS_TOPICS_GATEWAY_EVENTS/typing-start) Gateway event.

Generally bots should **not** use this route. However, if a bot is responding to a command and expects the computation to take a few seconds, this endpoint may be called to let the user know that the bot is processing their message.

I think it's ok to include that it e...

#

I'm following a convention of not listing fields as optional in the table if the description says they are
I know this is a point of inconsistency across docs, but I think being redundant is going to be more helpful than adding possible confusion. In reality, we'll need to explicitly pick a pattern for the docs and update all tables accordingly, but for now I think the tables should stay pretty explicit.

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

This description is entirely an outside observation and may not be accurate.

The Embed Debugger sends a request to the POST /unfurler/unfurl API endpoint. Supposedly, this makes an RPC to the Embed service. When media is detected in the unfurled response, the unfurler requests /_metadata on a Media Proxy instance in the cluster (this is leaked by the error message). Media Proxy uses [Lilliput](https://github.com/discord/lilliput...

chilly siloBOT
chilly siloBOT
#

Description

When trying to fetch X/Twitter's embed with the unfurler, it returns a 200 OK Status code alongside a "Internal error" error.

Steps to Reproduce

curl 'https://discord.com/api/v9/unfurler/unfurl' \
  -H 'authorization: ' \
  -H 'content-type: application/json' \
  --data-raw '{"url":"https://twitter.com"}' \
  --compressed

This also works with x.com, even tho it used to work just fine a while ago.

Expected Behavior

{"embeds": [...]}
`...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

my bot have full permission in a server and but I try to edit my voice status using bot and got Missing Access (50001)

Steps to Reproduce

run curl

curl 'https://discord.com/api/v9/channels//voice-status' \
  -X 'PUT' \
  -H 'accept: */*' \
  -H 'Authorization: Bot '\
  -H 'content-type: application/json' \
  -H 'User-Agent: DiscordBot (compatible; FantasyBot/0.1; +https://fantasybot.tech/support)'  \
    --data-raw '{"status":"nice"}'

Expected Be...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

Standard stickers are now free to use and available to anyone (see #6265). Bots currently cannot use them without the X-Super-Properties header, because the endpoint seems to still be limited by an experiment gate.

This restriction should be removed, such that bots can properly use these stickers without the header.

Steps to Reproduce

  1. Retrieve a standard sticker using the [List Sticker Packs](https://discord.com/developers/docs/resources/sticker#list-sticker-packs...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Bumps actions/checkout from 3 to 4.

Release notes
Sourced from actions/checkout's releases.

v4.0.0
What's Changed

Update default runtime to node20 by @​takost in actions/checkout#1436
Support fetching without the --progress option by @​simonbaird in actions/checkout#1067
Release 4.0.0 by @​takost in actions/checkout#1447

New Contributors

@​takost made their first contribution in actions/checkout#1436
@​simonbaird made their first contribution in act...

#

Gesendet von Outlook für Androidhttps://aka.ms/AAb9ysg


From: dependabot[bot] @.>
Sent: Tuesday, September 5, 2023 1:08:09 AM
To: discord/discord-api-docs @.
>
Cc: Subscribed @.***>
Subject: [discord/discord-api-docs] Bump actions/checkout from 3 to 4 (PR #6402)

Bumps actions/checkouthttps://github.com/actions/checkout from 3 to 4.

Release notes

Sourced from actions/checkout's releases<https://github.com/actions/c...

chilly siloBOT
#

I want to share a message with image attached to a Discord Server that I've joined from my React Application via some sort of api from Discord.
All results I've found on the internet leads to Discord Webhooks.
But, the problem with Discord Webhooks is that the user who has shared the message will appear has a bot.
Although, we can change the bot's name and avatar every single time in the webhook's POST request's payload, the BOT badge still seems to appear ensuring that it is a BOT not a...

chilly siloBOT
#

Description

A message in a news/announcement channel which contains a sticker will not have the sticker displayed for published messages in channels following the news/announcement channel.

Steps to Reproduce

  1. Create community guild
  2. Create channel, enable announcement
  3. Create a channel which will follow the announcement channel
  4. Post a sticker in the announcement channel and publish it
  5. Find nondisplayed sticker in follower channel

Expected Behavior

Published m...

chilly siloBOT
#

Description

when passing sticker_ids:[] on message update to a message with no stickers discord says your attempting to update the stickers.

Steps to Reproduce

4Wf12jg

Expected Behavior

It doesnt think your trying to update the stickers

Current Behavior

It does think that

Screenshots/Videos

No response

Client and System Information

API V10

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

I had a blocklist in place that included Discord crawler IPs, so crawling obviously wasn't working, now after disabling it, it still wont crawl it at all. I can't even find any requests made from discord (at least not with any discord user agent), embeds on other platforms (e.g. Facebook) work fine. It's definitely something host related as this isn't the only domain on that IP I'm having issues with. I am pretty sure that there shouldn't be any captcha/block, preventing it f...

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

Description

I have a HTTP bot that response to a interaction with a defer reply and then send a followup to build a response since there is a db interaction in it. And since 6 hours I get random CF ratelimits. NO GLOBAL BAN

Response header:
AxiosHeaders {
date: 'Wed, 06 Sep 2023 19:24:09 GMT',
'content-type': 'application/json',
'content-length': '45',
connection: 'close',
'set-cookie': [
'__dcfduid=XXXXXXXXXXXXX; Expires=Mon, 04-Sep-2028 19:24:09 GMT; Max-Age=...

#

If you're deferring and following up fast enough (in a timespan of a few milliseconds), you can have a race condition where the follow-up is received before the initial response (the defer) has been handled. In this case, the API replies with a 404 (invalid webhook).

I workaround by making sure that follow-ups can be sent only if 100+ ms have passed after the initial response. You should probably do something similar.

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

This is an absolute must IMO. Once your server gets into the thousands of members, you require extra insight, and the about me has been a goldmine in my experience. Being able to access data that is otherwise publicly available should be the default.

I'm 100% okay with making it a privileged intent, but we need access to it.

To those who say "but my privacy!", I can only say: DON'T POST PRIVATE STUFF IN PUBLIC PLACES!

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Then it should be limited to discoverable guilds only if you're going to have that mentality about it.

Then, by your logic, message intent should also be limited to discoverable guilds.

I'd argue limiting it to discoverable guilds is still better than not having the ability to view "about me"s at all. If this is the decision Discord makes, I won't be happy, but it's better than nothing.

chilly siloBOT
#

To those who say "but my privacy!", I can only say: DON'T POST PRIVATE STUFF IN PUBLIC PLACES!

Then it should be limited to discoverable guilds only if you're going to have that mentality about it.

So it's fine for a bot to log all available user data (mostly their UID) and then proceed to track said user across any guild the bot is in, logging every single message that they post.

But a bot reading the "about me" part of a users public profile is a step too far?

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

When I send a message with the link https://testtube.fun it works on other sites other than Discord.
https://discord.com/developers/embeds?url=https%253A%252F%252Ftesttube.fun%252Fmaintenance
I checked on this tool and it says:
Error
error trying to connect: tcp connect error: deadline has elapsed
{}

Steps to Reproduce

https://discord.com/developers/embeds?url=https%253A%252F%252Ftesttube.fun%252Fmaintenance

Expected Behavior

Should embed the website

C...

chilly siloBOT
#

Description

When trying to edit payout information, the site crashes.

Steps to Reproduce

Please note that this issue might be associated with an experiment (this is indicated by the console output referring to the hook "useEuAndUkStripeOnboardingExperiment").

  1. Visit the "Payout Settings"-Tab of any team in your developer dashboard
  2. Click on "Get started" or "Edit payout information"
  3. Observe how Nelly appears with a crash error message:
    ![image](https://github.com/disc...
chilly siloBOT
chilly siloBOT
#

Description

hello, im not sure how to explain it, but theres a bug where your profile is stuck in, invisible mode and it wont change to do not disturb or online etc until you completely close discord

Steps to Reproduce

Im not sure how it happens im a noob at this, i assume its due to a connection error which sticks you offline until you reset the app

Expected Behavior

nothing serious just being stuck in invisible mode lol mostly occurs on mobile

Current Behavior

mino...

chilly siloBOT
#

Description

When I go to get started in payout settings the site crashes and shows an error message.

Steps to Reproduce

  1. Go to developer portal
  2. Go to teams and select a team
  3. Go to payout settings
  4. Click get started or edit

Expected Behavior

No crash and instead a set up or edit option

Current Behavior

The site crashes and shows an error message that says "Error encountered!
Minified React error #321; visit https://reactjs.org/docs/error-decoder.html?inv...

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

Bumps @typescript-eslint/eslint-plugin from 4.33.0 to 6.7.0.

Release notes
Sourced from @​typescript-eslint/eslint-plugin's releases.

v6.7.0
6.7.0 (2023-09-11)
Bug Fixes

eslint-plugin: [no-restricted-imports] disallow side effect imports when allowTypeImports is enabled (#7560) (4908905)

Features

eslint-plugin: [await-thenable] added suggestion fixer (#7437) (b284370)

You can read about our versio...

#

Bumps chalk from 4.1.2 to 5.3.0.

Release notes
Sourced from chalk's releases.

v5.3.0

Add sideEffects field to package.json 5aafc0a
Add support for Gitea Actions (#603) 29b8569

https://github.com/chalk/chalk/compare/v5.2.0...v5.3.0
v5.2.0

Improve Deno compatibility (#579) 7443e9f
Detect true-color support for GitHub Actions (#579) 7443e9f
Detect true-color support for Kitty terminal (#579) 7443e9f
Fix test for Azure DevOps environment (#579) 7443e9f...

#

Bumps eslint from 7.32.0 to 8.49.0.

Release notes
Sourced from eslint's releases.

v8.49.0
Features

da09f4e feat: Implement onUnreachableCodePathStart/End (#17511) (Nicholas C. Zakas)
32b2327 feat: Emit deprecation warnings in RuleTester (#17527) (Nicholas C. Zakas)
acb7df3 feat: add new enforce option to lines-between-class-members (#17462) (Nitin Kumar)

Documentation

ecfb54f docs: Update README (GitHub Actions Bot)
de86b3b docs: update no-promise-exec...

#

Bumps typescript from 4.4.3 to 5.2.2.

Release notes
Sourced from typescript's releases.

TypeScript 5.2
For release notes, check out the release announcement.
For the complete list of fixed issues, check out the

fixed issues query for Typescript 5.2.0 (Beta).
fixed issues query for Typescript 5.2.1 (RC).
fixed issues query for Typescript 5.2.2 (Stable).

Downloads are available on:

NuGet package

TypeScript 5.2 RC
For release notes, check out the ...

#

Bumps eslint-config-prettier from 8.3.0 to 9.0.0.

Changelog
Sourced from eslint-config-prettier's changelog.

Version 9.0.0 (2023-08-05)

Added: The CLI helper tool now works with eslint.config.js (flat config). Just like ESLint itself, the CLI tool automatically first tries eslint.config.js and then eslintrc, and you can force which one to use by setting the [ESLINT_USE_FLAT_CONFIG] environment variable. Note that the config of eslint-co...

chilly siloBOT
#

Not sure this is the right move. Running two separate linters / formatters on the same file never ends well. Prettier / eslint kinda work because of the prettier eslint plugin, but I forsee a future in which mardkown-lint and the table formatter will not argee with eachother.

FWIW, prettier used to be running on the markdown files, had to be turned off when CI was added due to some strange changes it wanted to make that didn't fit in scope.

chilly siloBOT
#

Description

The "Invite" Button in the "App Testers" Tab of an Application does not have a Disabled state despite not being able to use it - when you have the "Read Only" permission level in the Application's Team.

Steps to Reproduce

  • Go to the Discord Developer Portal
  • Have the "Read Only" permission level in a team with applications in it and enter one of them
  • Go to the "App Testers" Tab of the Application
  • Notice how the box...
#

Description

Some elements (buttons & text boxes) do not appear disabled in Applications on Dev Portal when you have Read-Only permissions from within the Application's Team.

Steps to Reproduce

  • Go to the Discord Developer Portal
  • Have the "Read Only" permission level in a team with applications in it and enter one of them
  • Notice the following elements not appearing disabled when they should:
  • [ ] Application "Description" box i...
chilly siloBOT
#

Deleting this file feels very wrong to me. If you are intentionally changed the styling of ci (notably reducing the width from 120 to 80...which is alright but not great, and switching from tabs to spaces, which was only applied to the ci script in the first place because md probably shouldn't have tabs) then you should delete the corresponding rules. If it was causing issues with markdown, then you should add / change rules in the markdown override.

chilly siloBOT
chilly siloBOT
#

Duplicate of https://github.com/discord/discord-api-docs/issues/6424

Hey snek. These bugs are a tad different. This one is specifically pointing out that the Button isn't actually in a Disabled state at all, whereas my other one (#6423) just before this one, is explaining that the buttons and field don't look like they're in a disabled state, but are in reality.

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

FIX: There was an error: DiscordAPIError[10004]: Unknown Guild

After so, so many hours of debugging and head-scratching, our team finally fixed the issue with the error listed above. Actually, you have to add a bot to your server. Then, you can use your discord token to make the API calls and it will work fine.

Follow the following steps to resolve your issues:

  1. Go to the Discord Developer Portal (https://discord.com/developers/docs/intro)
  2. Go to Applications (from the sideb...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Adds initial versions of Getting Started guides in the following languages:

  • Danish
  • Dutch
  • French
  • German
  • Japanese
  • Polish
  • Portuguese, Brazilian
  • Turkish

🚀 This PR

We are not accepting changes on this specific PR as it has an accompanying PR in the dev portal to add the LocalePicker component and prevent rendering the Getting Started guides in the sidebar 8 times (see demo).

👀 New Pull Requests for Localization

If you see something that is technically i...

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

Description

When pruning a server and the amount of pruned members is over 1k, the audit log entries for it are split into 1k chunks with the user initially being the one who actually executed the prune and the rest being members that are being pruned.

Steps to Reproduce

  • Have a server with greater than 1k inactive members
  • Prune them

Expected Behavior

A single audit log entry is generated showing the correct amount of pruned members and the correct user

Current Behav...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

Exists very strange cases where the field communication_disabled_until are not removed when the timeout expire, this cause bots using this field to determine if the user is timeout fails to check correctly, not sure if this happen with timeouts make by API/client because cannot replicate.

Steps to Reproduce

Mute a user using the API/Client

Expected Behavior

User muted until the date provided pass

Current Behavior

Stranges cases where the user finish the time...

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

That being said, it's not something Discord can fix, they can't just ignore many web standards that have been set in stone for almost 8 years.

@kyranet

so does this mean that in all of discord's internal logic, whenever they reference a guild or channel or message or even user ID, any front-end logic is treating it as a string but the back-end [assuming the back-end is not written in JS] is treating it as a number?

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

I'm writing a bot to caption voice channels, and this would be really nice to have. Imagine if there were two deaf/hard of hearing users in a server who wanted to join different channels. Now, the server owner would have to invite two of the exact same bot to the server to serve their needs. If there were 3 different channels, 3 instances, and so forth. It just gets silly after a point.

chilly siloBOT
#

Description

If you send an embed with 26 or more fields, there REST call does not fail. It works and all excess fields are simply not taken into account but the embed is sent with the first 25 fields only. For the 6k characters limit the excess fields are counted though and make the call fail.

Steps to Reproduce

Send an embed with 26 fields

Expected Behavior

Request fails with a proper message

Current Behavior

Excess fields are considered for things like overall size l...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Someone brought this discussion to my attention today. I honestly would be all for this. I do not understand the purpose of the Join Guilds for You permission in the first place (I cannot really see any practicality, maybe a Prompt to Join Server permission would be more ideal), and with the rise of scams on the platform, I truly believe this could fix it. I have some friends who use Discord who are not that experienced with such platforms and therefore would be likely to fall for a "Join...

chilly siloBOT
chilly siloBOT
#

Description

Sending an edit request of a message in a forum thread, which add a mention to a role which contains 100 users (or more) returns a 500.

Steps to Reproduce

  • Have a role with at least 100 users
  • Create a thread in a forum
  • Post a message in this thread
  • Edit this message, by adding a mention to the role
  • Should return error 500

Expected Behavior

It shouldn't return an error 500, and instead, the request should succeed.

Current Behavior

Discord API r...

chilly siloBOT
chilly siloBOT
#

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an [ignore condition](https://docs.github.com/en/code-security/supply-chain-security/configuration-options-for-dependency-upda...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#
A new `default_values` field was added for user (`5`), role (`6`), mentionable (`7`), and channel (`8`) [select menu components](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/select-menus). `default_values` is a list of [default value objects](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/select-menu-object-select-default-value-structure), which each include an `id` (the snowflake value for the resource), as well as its corresponding `type` (either `"user"`, `"role"`, or `"channel"`).
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

This seems to be more a client-side issue rather than API specifically but it affects bots enough that I think it's fine here.

The client has suddenly started converting all autocomplete requests to lowercase before sending them to the bot. This is breaking behaviour that previously worked fine.

Steps to Reproduce

Try executing an autocomplete interaction with uppercase letters and observe any of the following:

  • The network tab
  • The header of the option box
  • Th...
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Multiple server owners, including myself, have noticed that when using Regexes for custom AutoMod rules, strange behavior occurs, most notably causing issues with the ^ and $ metacharacters. It is my understanding that pending message content is sanitized in some way before being handed off to AutoMod - so far all I'm aware of is that Markdown characters and newlines are trimmed, as well as some other weirdness involving the beginning of messages and/or special characters (the Regex `^[a-...

chilly siloBOT
#

Description

I am using this API https://discord.com/api/v9/interactions and want to send message using client.imagine but this error is comming

Error: imagine return 400 Bad Request {"message": "Unknown Guild", "code": 10004}

I am already able to get the messages using client.getMessages() and this works perfectly.

Steps to Reproduce

https://discord.com/api/v9/interactions

Expected Behavior

I want to send message in the discord channel using this API

Current Beha...

chilly siloBOT
chilly siloBOT
#

Description

Users are encountering a sudden issue with Discord's GameSDK, where the relationshipManager.OnRefresh callback is consistently returning 0 relations. This problem impacts developers who use this feature to create friends lists, affecting their application functionality and user experience.

Steps to Reproduce

Use the exact same code provided in Discord's documentation to generate friends lists:

var discord = new Discord.Discord(clientId, Discord.CreateFlags.Def...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

The Discord widget/iframe doesn't set a CSP header.

Without something like

Content-Security-Policy: frame-ancestors 'self' https://*;

or

Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Resource-Policy: cross-origin

sites that use

Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin

can't embed the widget properly.

Chrome at least supports credentialless="true" as an attribute on the `` which ...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

Links that have an underscore in them that are also inside an italics markdown (underscore) will fail to italics properly.
Additionally if there's an underscore and parenthesis () it will fail to render completely

Steps to Reproduce

create an embed with the following markdown in the description field:

**Coccidioidomycosis** ([/kɒkˌsɪdiɔɪdoʊmaɪˈkoʊsɪs/](https://en.wikipedia.org/wiki/Help:IPA/English "Help:IPA/English"), [_kok- SID-ee-oy-doh-my-KOH-sis_](...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

With the release of the new Premium App Subscriptions, one feature we should ahve access to is the PREMIUM_REQUIRED response type on interactions. upon trying to use it however I am given an error saying that the type is not one of {1, 4, 5, 6, 7, 8, 9, 11}. Funny enough 11 is listed here, but is not mentioned on the docs.

Steps to Reproduce

Respond to an interaction with the type of 10. No other data supplied.

Expected Behavior

End user receives the new upgr...

chilly siloBOT
#

{"type":8}
On Wed, September 27 2023 at 6:41 AM TheTurkeyDev @.>
@.
> wrote:

{"type":10} Is all that I'm sending


Reply to this email directly, view it on GitHub
https://github.com/discord/discord-api-docs/issues/6455#issuecomment-1736445979,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASRDBTPUC7MPTDU67L2OFNTX4NR3VANCNFSM6AAAAAA5IO3Y7U
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

Stickers can no longer be accessed on cdn.discordapp.com, which is the documented CDN endpoint. Instead, now discord.com must be used. This is a breaking change since the documented way no longer works and I needed to update my site to discord.com/stickers which is not documented.

Steps to Reproduce

Go to: