#github-notifications

1 messages ยท Page 9 of 1

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

The docs state the following about permissions:

Permissions are stored in a variable-length integer serialized into a string, and are calculated using bitwise operations.
[...]
In API v8 and above, all permissions are serialized as strings, including the allow and deny fields in overwrites.
[...]
In API v6 (now deprecated), the permissions, allow, and deny fields in roles and overwrites are still serialized as ...

chilly siloBOT
#

I couldn't repro with the repro steps you provided. Can you provide additional repro steps to help us narrow this down?

Issue seems to be happening only on forum channel threads (did not checked standard threads). Attached two videos showing the same exact command executed on threads and normal channel.

Client and System Information

Issue persist in web and desktop client.

Electron 22.3.26
Chromium 108.0.5359.215
Host 1.0.9030 x86 (42484)
Windows ...
chilly siloBOT
#

If Discord wishes to keep the current poor quality of documentation relating to integration of GameSDK into UE, then that is fine by me. If on the other hand they wish to reference some or all of the example project I created, then they are welcome to do so in whatever way makes the most sense to them

Your judging the quality of the documentation without improving it. On top of this, your project is far from perfect too, and I have many points to make about your project (sorry to say).
...

chilly siloBOT
#

Thank you for the constructive criticism. It is true that the sample project isn't perfect and there are a number of ways to improve it.

It is also true that the current docs are at least an order of magnitude worse, and the sample is a massive improvement over it.

If your argument is that the current docs should be kept because the significantly-improved sample isn't perfect, then that does help to explain why the Discord SDK docs are so bad and seemingly unlikely to improve.

There...

#

Iโ€™ve read your README, Iโ€™ve not stated that my point is to keep the docs
the same way at all. Iโ€™m simply stating that if youโ€™re that bothered,
change it yourself.

also, your point of โ€œnothing is hard codedโ€ is completely false, the
ClientID has to be baked into the constructor, which means blueprints canโ€™t
change it. Why not allow blueprints to change it so people can just easily
use the sample project?

To word by point even better in hopes that you may understand, a sample
projec...

chilly siloBOT
#

the ClientID has to be baked into the constructor, which means blueprints canโ€™t change it. Why not allow blueprints to change it so people can just easily use the sample project?

I haven't added any Blueprints support at all to the sample. It is purely C++; the intent is for the UCustomDiscordGameSubsystem to be completely replaced by whatever game wants to reuse the plugin and so each game can determine the level of BP customization they want to support.

You do make a good point t...

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

The gateway section documents the send rate limit of 120 events per 60 seconds.

However, it's not documented exactly how that limit is implemented in practice, and since there's no rate limit information included in received gateway events (cf. REST API headers), this does leave end-users with a bit of a guessing game as to whether or not they're likely to overstep this limit with their next event:

  • Does the limiter implement a rolling time window, such that it checks for 120 messages se...
chilly siloBOT
#

Description

When a guild creates a scheduled event with a frequency members have the ability to mark their interest in all events in the series or individual series events. Each of the listed series appears to have a unique EventId that can be copied. When performing a List Schedule Events for Guild or Get Guild Schedule Event the individual series event id(s) are not returned.

Steps to Reproduce

  • Create a guild scheduled event w/ a Frequency
  • Execute a List Schedule Events fo...
chilly siloBOT
#

Hello folks.

I just wanted a develop bot which can change user status. And i wanted this feature so badly. I even mailed and got declined. :) I kinda understand discord for this but. It is essential for discord to be get into also Business sector.

let me explaein "What this feature holds";

Changin user status when he/she gets in meeting in every platform ( bot will check and set status )
Changin user status when he/she writing code
Changin user status when he/she writes to off chan...

chilly siloBOT
#

Description

The 2023-10_social_proofing_message_nitro_badge experiment introduced Nitro badges next to usernames in chat. For this feature to function, premium_type was added to the partial user object. The field is already documented, but the field used to require the identify scope using OAuth2. Moreover, the field is absent in some contexts where partial user objects exist, such as gateway events containing member objects. As such, the exposure on GET /users/ and `GET /cha...

chilly siloBOT
#

@appellation

I was able to pinpoint the exact condition when the error occurs - when a post is displayed in split view - forum on left, post content on right. When you display a post in a full view, slash command is working properly (bot was offline during the recording, but the client launched the slash command).

https://github.com/discord/discord-api-docs/assets/33233389/3c353fb0-263b-4f5d-9938-eb8d6f0cb812

chilly siloBOT
chilly siloBOT
#

The behavior has been changed and internally I've made it so that when a new message type is made, it is implicitly deletable (this used to have to be an explicit thing devs would set.)

Now, this has been inverted to a set of "undeletable" message types, which I'm reproducing below (with code comments and all so people understand the rationale.

    UNDELETABLE = {
        # These deal with GDM recipients being added/removed,
        # we should not allow these to be deleted, si...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

Up until a few weeks ago, when pasting an image into a slash command, it would populate the attachment option. This was regardless of which current option they had selected. Pasting now does not populate the field.

Steps to Reproduce

Create a basic slash command using the following JSON and register this command through the https://discord.com/api/v10/applications//commands endpoint

json = {
    "name": "test_submit",
    "type": 1,
    "description":...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

The client side percent-decoding allows for seemingly bypassing some automod rules.

I don't really see an easy fix for this, besides completely disabling percent-decoding on the client (which is mostly a cool feature) or enabling percent-decoding on the automod side, which I feel like is probably going to slow it down and therefore slow down sending messages?

Steps to Reproduce

  1. Use this regular expression [^\x00-\x7F] for example on the automod configuration, wh...
chilly siloBOT
chilly siloBOT
#

GitHub doesn't specify a time limit for redirects regarding repository renames.

When you rename a repository, all existing information, with the exception of project site URLs, is automatically redirected to the new name. 1

Additionally, casing in GitHub URLs don't matter: https://github.com/dISCORD/Discord-API-Docs will work just fine, for example.

That's something new, o...

chilly siloBOT
#

Description

Discord recently introduced image gallery support to their unfurler. This is great! There is one issue: Wikipedia has duplicate og:image meta tags to specify alternate sizes of the same imageโ€”not visually distinct images.












Since Discord already has custom logic to unfurl Wikipedia (the embed description appears to be generated from HTML elements in the body, not from head tags), it could be feasible to add some checks here to prevent ...

chilly siloBOT
#

Adding onto this, an issue I've found that isn't specific to a single website is that same image links aren't de-duped if the website provides metadata in both Opengraph and JSON-LD formats at once.

For example, the following html will produce two of the same images:

<!DOCTYPE html>
<html>
    <head>
        <meta name="og:image" content="https://example.com/image.png"/>
        <script type="application/ld+json">
            {
                "@context": "https://schema.or...
chilly siloBOT
#

That's something new, ok nice - thanks for info! When I did rename my accout nickname to use lowerspace it did warn me that it may break all existing links to my profile and/or repositories.

That's just because if you change your name completely then someone can use the old name after a certain amount of time, and they use that message regardless of what in your name changed

chilly siloBOT
#

There's a comment from 2020 here: https://www.reddit.com/r/discordapp/comments/gneyfo/bot_to_kick_people_who_have_been_inactive_longer/fraxmqa/

This is due to a technical limitation on our end of only storing the if you were active in the last 45 days. We've since fixed this (moving to new database tech), but we gotta wait a while for data to populate.

Seems reasonable that now we could have the ability to prune up to 3 years?

chilly siloBOT
chilly siloBOT
#

There's a comment from 2020 here: https://www.reddit.com/r/discordapp/comments/gneyfo/bot_to_kick_people_who_have_been_inactive_longer/fraxmqa/

This is due to a technical limitation on our end of only storing the if you were active in the last 45 days. We've since fixed this (moving to new database tech), but we gotta wait a while for data to populate.

Seems reasonable that now we could have the ability to prune up to 3 years?

chilly siloBOT
#

Description

I, KylomaskGamer, along with user Soheab_, have encountered an issue with modifying guild features, specifically the INVITES_DISABLED feature. Despite having the necessary permissions (confirmed by both users), we consistently receive a 403 Forbidden error. The problem seems to persist even with admin rights.

Steps to Reproduce

Use the provided discord.py snippet to modify guild features:

import discord
from discord.ext import commands

bot = commands.B...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Sometime over the summer of 2023, I thought I saw announcements about Discord API v9 being deprecated in early 2024. Some partner projects such as discord.js had also posted about the need to upgrade to newer version of their library that supports Discord API v10. I can't seem to find information on that anywhere anymore. https://discord.com/developers/docs/reference#api-versioning just shows that it's available alongside v10.
This thread hasn't been active for a while, and this thread disc...

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

So Discord is a dope place to hang and chill with your friends online. But a few months back, the popular chat platform Omegle shut down permanently, and it is now clear....Discord isn't the best place to actually make new friends. Reddit is flowing with Users hoping to launch the Next Omegle, but these projects have a steep climb to come anywhere close to where Omegle ranked in terms of daily traffic. My friends and me realized that Discord already has an Epic Video Chat Architecture, ...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

When Iโ€™m trying to get message information, and also the TTS status of the message (whether or not itโ€™s a text-to-speech message) the value js returning โ€˜falseโ€™ when I run it on a message that was spoken out loud when it got sent.

Steps to Reproduce

  • Send a TTS message with /tts message:Something to be spoken
  • With a bot, check whether the message is TTS. (I am using Discord.ja)

And thatโ€™s all.

Expected Behavior

The value to return โ€˜trueโ€™ when itโ€™s a TTS m...

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-...
chilly siloBOT
#

Thanks for the bug report! We can confirm that the bug is reproducible when getting the message data via the REST API, and we've tracked this in our backlog.

Alright. That would be awesome.

@JarvoDiscord , can you share more context on the use case for checking tts? So far, it's not obvious to me why reading that value is necessary outside of the Discord clients receiving the message and converting the text to speech

It's for getting detailed information of a message.

#

@JarvoDiscord , can you share more context on the use case for checking tts? So far, it's not obvious to me why reading that value is necessary outside of the Discord clients receiving the message and converting the text to speech

It's for getting detailed information of a message.

Rephrased: we are looking for more specific information about your usecase and how receiving or not receiving this information will directly effect the functionality you're trying to implement with ...

chilly siloBOT
chilly siloBOT
#

It's to get message information using a Discord bot contextmenucommand. Or if you mean how I used it... Using discord.js message.tts - checks if the message is a TTS message.

That's all. Don't have more.

So you use a ContextMenuCommand to output detail information about the message, perhaps as a table of data, and your desire is for the tts value in that table to be accurate to whether tts was used or not.

Is this an accurate depiction of your usecase?

chilly siloBOT
#

Description

Any messages that my bot sends (or edits/updates) with images attached are completely blurred for the first ~1-2 seconds. This is true even if the image is not updated in the edit.

This behavior was not happening last week or before and makes my bot quite unusable.

I've been told this is intended for messages with any attachment (attachments are scanned for safety/security?), but it seems like it is happening only on the desktop client, not mobile or web. I am suspecti...

chilly siloBOT
chilly siloBOT
#

i can reproduce this issue with an application using an application endpoint (vs. gateway)

repro:

  • enable tts messages in user settings
  • send a tts message /tts test
  • hear the tts message
  • use a message context command on the tts message

expected:
the inner message payload reads "tts": true

actual:
the inner message payload reads "tts": false

note:
this is also the case when explicitly requesting the message from /channels/:id/messages/:id (tested on multiple ap...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

As title, please allow online statuses to be changed per each server as well.

I always liked to be able to stay Online but being forced to stay "Busy" or "Invisible" on the main server I'm most active on, otherwise users from other discords will spam message me is something that I don't feel is right at all.

P.S: add also a secondary button to restore it to the default behavior for all the servers, for quality of life reasons.

#

The Elasticsearch member search endpoint (/guilds/:id/members-search) is accessible to bots and can be useful in certain situations. The old members search endpoint (/guilds/:id/members/search) is already documented and is in the spec but I assume this endpoint is slower and/or less accurate than the new endpoint.

This new Elasticsearch endpoint might not ever be official documented in discord/discord-api-docs but it is still useful to developers and should at least be documented in th...

chilly siloBOT
chilly siloBOT
#

Description

Yesterday, I started having HTTP 400 errors when trying to retrieve a token using the Client Credentials Grant flow. Someone on the Discord Developers server pointed out that a fix was to pass the client_id and client_secret of my app in the request body instead of passing them as a Basic Auth header. We are not sure if this is a bug, or if the docs were not updated for that change ๐Ÿค”

Steps...

chilly siloBOT
#

Thank you for the addition information.

I understand the desire here is to get an accurate value for tts, however the reality is that Discord does not actually store this value as it has no use for the Application. We accept this value and send it off through the Gateway to power the TTS feature, but it is not written to our databases at all.

In fact, it isn't as simple as storing the data and returning the true|false value as we would need to retool a variety of code internally to ...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

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


Von: Hemu @.>
Gesendet: Samstag, Februar 3, 2024 1:16:12 AM
An: discord/discord-api-docs @.
>
Cc: Subscribed @.***>
Betreff: Re: [discord/discord-api-docs] 503 Service Unavailable when saving Automod Regex (Issue #6142)

Closed #6142https://github.com/discord/discord-api-docs/issues/6142 as completed.

โ€”
Reply to this email directly, view it on GitHub<https://g...

chilly siloBOT
chilly siloBOT
#

Description

Hi - we use the next-auth package to simplify the OAUTH flow with Discord

Today, we started getting 429 responses in our logs and an error message when trying to log in with discord to our application

I am at a loss for even how to troubleshoot this as it has never happened before and all of this is happening deep within the next-auth package.

I had also read within this issue that rate limits should be per-...

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

Description

I'm currently attempting to create a bot with a slash command that can iterate through the active invite codes in my discord server, and then delete them all. As I current am at the server invites limit for my server, and I need a way of deleting them efficiently. So I tried doing this with a bot with the fetch invites and using a loop to iterate them, but the API keeps triggering because I have too many invites. Please add a parameter to ctx.guild.invites(), that lets me che...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

AWS charges $0.005/hour for using their Elastic IPV4s. I tried changing everything over to IPV6, mostly my CI/CD pipeline for the bot, but what do you know? I gave my VPS an IPV4 to SSH into it for a short while and saw the bot come online. I removed the IPV4 from the VPS and the bot stopped responding. In fact, I checked my VPS and it says the bot restarted during those times! Meaning, it disconnected from Discord API because the damn thing cannot connect using IPV6! This whole thing is driv...

chilly siloBOT
#

Mh, how will it work for the dm's display? I mean, you will be on Busy in a server and Active in DM it will make incoherent things right? And it's technically difficult to display a custom display for each user in the server because you could be in more than 1 server common with someone.

chilly siloBOT
#

The issue is not much for DMs specifically, but for servers themselves.
To me it has zero sense having "Invisible" at our disposal but then we can't be online where we want to be "Online" and available for other users.

About DMs it's a no brainer either since I wouldn't be hard to allow the user to set his default state (that will be used across the totality of all the other servers, DMs included), and a custom one he can set for the others he want (sort of like the Server Profile window ...

chilly siloBOT
chilly siloBOT
#

Description

When sending an Execute Webhook request and provide a valid image url in the avatar_url field Discord doesn't use the image and just uses a default Discord avatar image instead of the image url provided in avatar_url or the default webhook avatar provided in channel settings.

Note: The default webhook avatar set in channel settings will appear if you don't send avatar_url in the request.

###...

chilly siloBOT
chilly siloBOT
#

With AWS charging for IPV4 $0.005/hour, it is now important to support IPV6. Small bots need to run 24/7, but they do not have any revenue source. They are run from the pockets of their developers. This cost would soon spill over to other services as AWS users try to find alternatives, which would mean, they would also be forced to charge for IPV4 use. The worst-case scenario is for us to break Discord and come up with a way to support IPV6, but this is risky and exposes our bots to malicious...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

Over the past few days sometimes (not all the time) when a user adds our bot to their server, on callback we exchange the code for a token using https://discord.com/api/oauth2/token, this step is now randomly returning { message: '500: Internal Server Error', code: 0 } for some users. We've not changed anything on our end so really confused about what to do here since it's a generic server error.

Steps to Reproduce

It doesn't happen all the time for everyone so exact ...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Just chiming in that this is an undocumented, deprecated and will at some point be removed. I would caution anyone to depend on this functionality as it may be removed or changed without notice.

For those looking at this discussion, if you are using the above endpoint, and its breakage would be perilous for your app, please post here, so we can consider offering an alternative.

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

I'm bringing the discussion #4070 into an issue. The points made there still stand.

I also have this unfortunate issue where I cannot localise my commands any further without seriously dumbing down or even removing locales from my bot. I am translating across more than 5 locales, more of which have fewer translations. Also, I want to point out that not all my commands are even localised, and I have a total of about 15 commands.

The catalyst for opening this was #657...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

I faced a similar issue, my bots support all 31 languages, and I have to make very small commands because otherwise they error with the aforementioned error.

Just recently, I doubled the limit with a command with 6 subcommands with 3 options (2 string with localised choices, and 1 number) for a command the likes of /convert mass, /convert length...

About 2 months ago the same command failed to register (with just 4 subcommands) as a result of being on the edge of 4000 characters and...

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

We recently got the endpoint for the POST /guilds/:id/members-search that got suggested here and I'm suggesting adding it to the gateway event MemberAdd, as on the rise of bots, raids, and all of the bad stuff that you don't want in your discord server. There's no way to track which invites were used for these people that come into your discord server, and for you or your moderators to take action.

Another idea that ...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Just started running into similar issues on a local dev machine for OAuth implementation.

Pretty much exactly same code approach:

const tokenData = await request('https://discord.com/api/oauth2/token', {
         method: 'POST',
         body: new URLSearchParams({
		client_id: process.env.CLIENT_ID,
		client_secret: process.env.CLIENT_SECRET,
		code: code,
		grant_type: 'authorization_code',
		redirect_uri: `http://localhost:${OAUTHPORT}`,
		scope: 'identify guil...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

So this IS a bug? I'm part of a team developing extensions for a game engine and we are also facing this problem, please let us know if this will be solved soon. Clients using our engine are pressing for this bug fix from us... and apparently it's not a problem on our side then.

Yeah I've had the same issue, not sure if it's a bug or not.
My guess is it's to do with the relationships.read permission.
It requires approval from discord. (Not sure if the permission might have been changed...

chilly siloBOT
#

@typpo has this been deployed? This is still happening now.
See my below request/response
Request

{
    "username":"TEST",
    "content":"Test via postman",
    "avatar":"https://cdn.discordapp.com/attachments/1203224935456309268/1203224983002939443/ServerBadge.png"
}

Response

{
    "id": "1206483171827261490",
    "type": 0,
    "content": "Test via postman",
    "channel_id": "1203495739813007400",
    "author": {
        "id": "1203964802683...
chilly siloBOT
chilly siloBOT
#

Bumps @typescript-eslint/parser from 6.7.0 to 7.0.1.

Release notes
Sourced from @โ€‹typescript-eslint/parser's releases.

v7.0.1
7.0.1 (2024-02-12)
๐Ÿฉน Fixes

eslint-plugin: update peer dep for parser (#8441)

โค๏ธ Thank You

Tim Dorr @โ€‹timdorr

You can read about our versioning strategy and releases on our website.
v7.0.0
7.0.0 (2024-02-12)
Read more about this release: https://typescript-eslint.io/blog/announcin...

chilly siloBOT
chilly siloBOT
#

Testing again this morning using the following URLS;

Valid image, expiry params included - Does not work โŒ
https://cdn.discordapp.com/attachments/1130595287078015027/1206780063664836618/image.png?ex=65dd4084&is=65cacb84&hm=ac217a99a18d44ef234a9917951c0d25659d90235fc5c2264cff6874ed9e66c3&

Valid image, expiry params excluded - Does not work โŒ
https://cdn.discordapp.com/attachments/1130595287078015027/1206780063664836618/image.png

Externally hosted image - **No...

chilly siloBOT
#

Description

It was recently clarified that image URLs sent via the API would automatically refresh, if provided without the ?ex parameter.

Currently, if an image from the Discord CDN is sent to the API - the image is not displayed.

This is the case regardless if the image includes or excludes the ?ex, or if the image is inside or outside of its validity period.

Steps to Reproduce

Send the following post body to a c...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

To close the loop on this one, support was definitely wrong in routing your ticket here. I've mentioned this internally, as they have a button they can press to fix this issue. Looks like the support rep in this case was just mistaken (sorry, it happens - but hopefully it wont in the future).

I have same bug on my discord server.
Server ID: 813554191775039549
Channel ID: 1203400596355551324

chilly siloBOT
chilly siloBOT
#

Description

Hello

Since implementing the auto update feature for attachment link signatures on discord, I've noticed that the query params width and height no longer influence the size of images sent to discord.

For my part, I haven't changed anything in my sending process, I've always sent links that look like this:
https://media.discordapp.net/attachments/806282416364585062/981185405204463646/Inbox_tray.png?width=40&height=40

here is the difference:
![change size](https://...

chilly siloBOT
#

Currently, transitioning from an ephemeral interaction to a normal interaction when sending messages is not possible. To enhance this functionality, it would be advantageous to enable a seamless transition, such as initiating an ephemeral interaction during the execution of a task by my bot. Once the processing is successfully completed, the message could automatically transition to a normal interaction. In the case of reported errors, the interaction would remain in ephemeral mode.

The cu...

chilly siloBOT
chilly siloBOT
#

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


Von: Zribe @.>
Gesendet: Mittwoch, Februar 14, 2024 5:11:32 PM
An: discord/discord-api-docs @.
>
Cc: Subscribed @.***>
Betreff: Re: [discord/discord-api-docs] Can't login. After solving the captcha it loads the same captcha's page again (Issue #4029)

Well... ahhh... yea me too lol, used a domain that looks sus. Pretty mad at that as I am not a robot

โ€”
Reply to ...

chilly siloBOT
#

Description

In the latest version of the IOS app, after a period of time I have multiple users reporting that slash commands when in a direct message with ANY bot, no longer function. Commands are still working for them in guild channels. Hard restarting the discord app does not fix. A complete uninstall of the app and reinstall, does fix it temporarily but then the issue comes back a short time later.

Steps to Reproduce

This is difficult, I have it happening with 4-5 reported user...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Hi there! Sharing some context here -

We typically design and build modmin features like this to Communities and larger servers first because these are where issues like raids are most prevalent. If a solution has been validated to solve the Communities use case and there's minimal overall risk, then we consider rolling it out to all servers.

As you noted, we did roll out a different but similar functionality to all servers to Pause Invites for a specified amount of time (https://supp...

chilly siloBOT
chilly siloBOT
#

Hi @kriseldasamala!

I understand that Discord needs to monitor how this feature is used before deploying it to all guilds.

In the meantime, it may be useful to return an API error other than โ€œMissing Accessโ€ on servers without COMMUNITY when we try to enable Pause invites. Now, only guilds with COMMUNITY can enable Pause invites, and it's illogical because all guilds have Cybersecurity actions. (on a non-COMMUNITY guild, the โ€œPause invitesโ€ button opens Cybersecurity actions...

chilly siloBOT
#

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


Von: Maisy @.>
Gesendet: Donnerstag, Februar 15, 2024 9:53:48 PM
An: discord/discord-api-docs @.
>
Cc: Subscribed @.***>
Betreff: Re: [discord/discord-api-docs] Bump @typescript-eslint/parser from 6.7.0 to 7.0.1 (PR #6655)

Merged #6655https://github.com/discord/discord-api-docs/pull/6655 into main.

โ€”
Reply to this email directly, view it on GitHub<https://git...

#

Description

Whenever you have a theme selected as background in the discord app/website does it shows every embed color (the small color bar at the left) the same color.

Steps to Reproduce

  1. User settings
  2. Appearance
  3. Choose a theme
  4. Use any bots command (that has a embed message as reply) and now is every embed color the same gray/light black color

Expected Behavior

That it shows it as a normal embed with the real embed color it has

Current Behavior

I see e...

chilly siloBOT
#

I believe the ability to customize bot banners would offer several benefits:

Improved branding and communication: Bots could use their banners to display logos, slogans, or other visual elements that represent their brand and purpose. This would help users more easily understand the bot's function and build trust.
Enhanced user experience: Custom banners could be used to provide important information to users, such as instructions on how to use the bot, links to its documentation, or upco...

chilly siloBOT
#

I contacted developer support by email to ask if this change was intentional. Unfortunately, it seems that it is.

"Unfortunately, this is intended and you will need to request permission for this scope. You can also check this link for your reference. https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes"

It would be nice if the documentation for this is updated to reflect the change.

chilly siloBOT
chilly siloBOT
#

Since updating to verison 217 on iOS, embed colors haven't displayed. I use the Midnight theme but it also happens on Light and Dark themes. A few days before the update came to TestFlight, I saw other users talking about embed colors being gone, so I assume they were Android users who got 217 earlier.

App: 217.0 (55336) ptb; Manifest: N/A; Build Override: N/A; Device: iPhone15,2 OS 17.3.1;

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

O

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


Von: Jiralite @.>
Gesendet: Sonntag, Februar 18, 2024 8:34:38 PM
An: discord/discord-api-docs @.
>
Cc: Subscribed @.***>
Betreff: Re: [discord/discord-api-docs] Update settable flags when responding to interactions (PR #6672)

Duplicate of #5976https://github.com/discord/discord-api-docs/pull/5976.

โ€”
Reply to this email directly, view it on GitHub<https://git...

chilly siloBOT
#

Hi, bulk message delete audit logs will get merged into one if there was another one created not too long ago. So it's most likely that you tried a bulk-delete with no audit log reason and subsequent ones, even with reasons got merged into that audit log entry with no reason. One way to try it fresh is to try again in another channel where you didn't bulk delete yet from. If you're able to reproduce this issue despite that let us know. Will close for now as I couldn't reproduce this issue b...

chilly siloBOT
#

Description

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

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

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

This issue was created over a year ago here, however it was closed despite the issue still occurring and [repro...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

I just ran into this as well. Same command works fine in public channel but not in a thread.

One additional data point if it helps... I tried removing the setRequired(true) from my command to see if that would help. It still doesn't accept the file upload but it shows a different error. Instead of This option is required. Specify a value it now says Not a valid value.

![Screenshot 2024-02-19 at 1 02 55 PM](https://github.com/discord/discord-api-docs/assets/5804876/5a30105b-d944-4...

chilly siloBOT
#

With our Discord bots, we need to listen to many events to find out which invite connection a member is using. For example, we listen to the inviteCreate event and save it to the database or cache. Then we listen to the guildMemberAdd event and after the incoming member, we send a request and get the usage of the available invite links, and whichever one is incremented, we say that the user entered through that invite link, but this is a way with a high error rate. **If the bot is off...

chilly siloBOT
#

Description

The following error occurs when opening the CDN URL of a GIF sticker (custom server sticker):

NoSuchKey
The specified key does not exist. No such object: discord/stickers/id*.gif

Example URL:
https://cdn.discordapp.com/stickers/id*.gif

If it was a PNG Sticker, the URL will work normally:
https://cdn.discordapp.com/stickers/id*.png

* I have omitted the actual ID in this report.

Steps to Reproduce

  1. Create a GIF sticker in a Discord server
  2. ...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

@colcrunch I'm guessing Discord is trying to preserve privacy of users who opt out of analytics (as in, the server admins don't get to learn who does and doesn't have the box checked). If they showed a number here, then you could deduce which people have analytics turned off by seeing what happens to the number when they join the server.

Maybe just reporting "you're halfway to the 500 people you need to enable server insights" or "you're 3/4 of the way" would be a good compromise. I don't ...

chilly siloBOT
chilly siloBOT
#

Hello ๐Ÿ‘‹

Cryptocurrency Scam/Fraud Tracing & Recovery experts. If you have been the
victim of crypto fraud, we can help you trace and recover it for you.
Send HELP to this recovery Agents Below
EMAIL: @.***
TELEGRAM: t.me/bit_FlipcontractorsAgent
If you know or Have any Victim kindly share this information Thank you for
your cooperation

On Wed, Feb 21, 2024, 7:33 PM lychee @.***> wrote:

image.png (view on web)
<https://github.com/discord/discord-api-docs/asset...

chilly siloBOT
#

Description

accentColor will show null after being fetched if the user has not explicitly set a banner color on their profile or set a banner.

Steps to Reproduce

  1. Fetch a user who hasn't explicitly set a banner color or banner image

Expected Behavior

accentColor should return the color that Discord has automatically assigned

Current Behavior

accentColor returning null

Screenshots/Videos

Top user has explicitl...

#

if the user hasn't set an accent color, the color is computed client-side using the avatar image data

That's correct however it should still be placed in the user object. The automatically generated color is still shown in settings making it no different than a manually set color.

<img width="158" alt="image" src="https://github.com/discord/discord-api-docs/assets/77032942/46397671-a410-4ee8-aa61-83ce32fc0c51">

chilly siloBOT
#

Description

When deleting a guild role, error code 10011 Unknown Role is returned even though the role was successfully deleted. This only seems to occur for very large servers. I can consistently reproduce it on a server with 300k members. For other servers, the delete works as expected.

Steps to Reproduce

Create a new role, confirm that it exists, attempt to delete the role, catch the 10011 error code, and then confirm that the role was actually deleted.

Expected Behavior

D...

chilly siloBOT
chilly siloBOT
#

For those looking at this discussion, if you are using the above endpoint, and its breakage would be perilous for your app, please post here, so we can consider offering an alternative.

Working on app where I need to verify a user's relation to a bot, would be great to have something officially supported, and also maybe a route to view a user's apps.

#

For those looking at this discussion, if you are using the above endpoint, and its breakage would be perilous for your app, please post here, so we can consider offering an alternative.

Working on app where I need to verify a user's relation to a bot, would be great to have something officially supported, and also maybe a route to view a user's apps.

chilly siloBOT
#

Discord should really correct voice logs, on large servers it's impossible to determine precisely which staff has actually moved or disconnected another member. Not to mention that Discord still hasn't implemented the missing audit logs concerning the reorganization of channel order and roles. I really doubt that solving the audit log problem would require a lot of resources and development time. What are the folks at Discord up to?

chilly siloBOT
#

What is the best method to get a bot & user's mutual servers, assuming that we have access to both the OAuth2 Access Token or Bot Token, also considering rate limiting, and no access to gateway?

Current concept:

const guildsRes = await fetch('https://discord.com/api/users/@me/guilds', {
        headers: {
            Authorization: 'Bearer ' + session?.user.access_token
        }
    });

    if (!guildsRes.ok) {
        throw new Error('Failed to fetch guilds');
    };

...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

This issue has been redirected to here because that's not a discord.js issue.

Redundant MESSAGE_UPDATE events are emitted in specific cases.

I have found that this bug:

  • Only affects large guilds and bot users.
  • Cannot be reproduced for some bots (e.g. I can reproduce it by using 270904126974590976 but not 235148962103951360).

Steps to Reproduce

We will use discord.js to simplify the steps to re...

chilly siloBOT
chilly siloBOT
#

When an application does not acknowledge an application by using the /callback endpoint, the webhook endpoints for followup edits / deletes / sends fail with the response code UNKNOWN_WEBHOOK.

I think the developer experience would be improved significantly, if this error would indicate that the webhook does not work without acknowledging the interaction. I think there already is logic in place to stall the request for 3 seconds, so changing the error for this should be possible.

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Another really similar issue that is probably related so will post this here

When a bot deletes a message no audit log is getting created whatsoever

Steps to reproduce:

chilly siloBOT
#
ejm

Description

Recently, Discord no longer includes a thumbnail in embeds generated from URLs with OpenGraph data if the og:image tag leads to a Guild icon URL. This is a change to functionality which has worked since at least March 2022 without issue.

This issue seems limited to the following conditions:

  • The embed is generated as a result of a URL in a message โ€“ Embeds created in webhooks are unaffected
  • The og:image URL begins with https://cdn.discordapp.com/icons/ โ€“ URLs be...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#
chilly siloBOT
#

I did some more digging. Taking a look at the network requests sent by the Embed Debugger, it is calling the unfurler api to generate the thumbnail. For the working image, Nightfiend.gif, the headers in the JSON response are:

    "headers": {
      "content-disposition": "inline; filename=\"Nightfiend.gif\"; filename*=UTF-8''Nightfiend.gif",
      "content-type": "image/gif"
    }

However, for the broken image, Ravenous_Hunger.gif, the content-type is webp:

    ...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Changing how and when in the code that I called the SocketGuild has fixed this issue. Defining the socketguild at the start of the program and then using that falls over after somewhere between 1 and 14 days randomly (must have been a discord.net lib update that changed something) whereas defining a var every time I call it now works fine indefinitely again. I am guessing it must be a lib quirk so closing this issue.

chilly siloBOT
#

Description

In Developer Docs > Reference, the formats table shows a structure and example. The example for a user mention is rendered as a link with a mailto uri, specifically mailto:@80351110224678912

Steps to Reproduce

Visit Developer Docs > Reference and view the Formats table.

Expected Behavior

The user mention example is rendered as plaintext ``, like other mention examples.

Current Behavior

The user mention example is rendered as a link `mailto:@80351...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

When sending a video embed via the webhook api, the video is not displayed at all, and instead an empty embed is displayed.

Steps to Reproduce

Send a request to a webhook with this payload:

{
   "embeds": [{
      "video": {
         "url": video_url
      },
  }]
}

Expected Behavior

Should display the video as an embed to discord

Current Behavior

Empty embed shows up.

Screenshots/Videos

Client and System Informatio...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

In both light and dark mode, StringSelect boxes that allow multiple choice have the "Select" button colored in such a way that it's difficult to see. I've been asked to submit this here by a user on the Discord Developer discord server.

Steps to Reproduce

Any multiple choice StringSelect on mobile (both ios and android)

Expected Behavior

When an option is selected, the Select button should appear more clearly.

Current Behavior

The Select button does not chan...

chilly siloBOT
chilly siloBOT
#

Description

Hello there,

I stumbled upon a problem with Message Embeds in the discord API.

Using the Java Discord API I am creating a message Embed containing a title, description and an image. However, on about 50% of the cases the image does not show up in the embed.

Steps to Reproduce

Using the Java Discord API I am creating a message embed as follows:

        EmbedBuilder embedBuilder = new EmbedBuilder();

        embedBuilder.setImage(post.getImageUrl());
  ...
chilly siloBOT
chilly siloBOT
#

Description

IPv4 address space is exhausted hence it is getting harder and harder to connect to an IPv4 network. IPv6 networks are becoming more and more common, so much so that some ISPs and some data centres are IPv6-only.

Steps to Reproduce

Connect to discord.com on an IPv6-only network

Expected Behavior

Discord can be used normally

Current Behavior

Discord cannot be used at all

Screenshots/Videos

No response

Client and System Information

any

chilly siloBOT
chilly siloBOT
#

Currently banning a Member, who has already left or been removed, from a Guild does not respect the delete_message_seconds param - and thus does not delete their recent messages.

It would be nice if the delete_message_seconds param could be respected (when given) even when the Member being banned has already left the Guild.

Example cases of this could be when a Server Moderator forgets to include the option to delete the Member's recent messages, due to wanting to quickly remove the...

chilly siloBOT
#

We are considering adding this in the following weeks. To the community, would you prefer this to be the new default behavior, or would you want an optional parameter (default to false) that would enable this clean up.

My opinion, the fact that delete message days doesn't work when the user is gone from the guild, sounds like an unfortunate side-effect of how things currently work.

So, if we were to do this, we would just "make it work" the way you want. Looking for any dissenting o...

#

We are considering adding this in the following weeks. To the community, would you prefer this to be the new default behavior, or would you want an optional parameter (default to false) that would enable this clean up.

My opinion, the fact that delete message days doesn't work when the user is gone from the guild, sounds like an unfortunate side-effect of how things currently work.

So, if we were to do this, we would just "make it work" the way you want. Looking for any dissenting o...

chilly siloBOT
#

I'm going to also write about the updated semantics here, so that people are aware.

In the past, deleting a role would require scanning over all the members in a server to check who has the role before deleting the role. For large servers, this would end up taking a large amount of time, and timing out the API request (even though our backend still tries to complete it.)

Now, when the guild is large enough, we will perform the deletion of the role synchronously, while the cleanup of the...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

@sklein12 certainly not on all.

I can consistently reproduce it with twindragonscomic.com and savestatecomic.com

Both seem to run on WordPress. The owners are independent and they have independent servers as well.

I tested it with image links that point to Tumblr's cdn and those work just fine. And image links pointing to DeviantArt also seem to work without issue.

These WordPress pages aren't the quickest to respond. And if they work it takes a few good seconds till the image a...

chilly siloBOT
#

I think most people expect the default behavior to delete messages regardless of whether the user is still on the server or not at the time of placing the ban. UI doesn't give away that it's not currently the standard behavior anyway so changing the default behavior to "delete messages regardless of the banned user's presence in the server" makes way more sense since you'd avoid generating unnecessary confusion to server moderators across the entire platform.

chilly siloBOT
#

This is rather odd.

When it works I never had to wait 5 seconds. It took a like maybe 1 to 2 seconds. When I download the picture first via OkHttpClient and upload it, its also always like 1 second. (Gut feeling I never measured it)

Opening an image in browser without cache also seems to be rather quick. I can run additional tests tonight, where I take more exact time measurements. And not just gut feeling.

Plan is I download a picture via OkHttpClient 20 times to see what the min...

chilly siloBOT
#

Description

GUILD_AUDIT_LOG_ENTRY_CREATE event payload contains type mismatch for role color update for new_value and old_value values. Up until yesterday both were of type bigint but suddenly old value is int and new value is of string type (from my observation).

Steps to Reproduce

  1. update any guild role with new color
  2. watch incoming payload from GUILD_AUDIT_LOG_ENTRY_CREATE event
  3. see type of new_value and old_value values

Expected Behavior

both old and new...

chilly siloBOT
#

Just want to update everyone here that after reaching out to support, I was sent the following:

We've reached out to our engineering team and there was a change to access the scope you are referring to and just to clarify that this is not a bug. Unfortunately, we cannot grant access to this scope [relationships.read] at this time.

Not really sure where to go from here. This renders this entire feature of the GameSDK as unusable. Public clarification would be appreciated.

chilly siloBOT
#

This time, some of the previous images were displayed correctly. Others, however, were no longer:

It sounds like you're saying here that some that previously loaded were no longer loading, but the list of images that didn't load

                "https://www.twindragonscomic.com/wp-content/uploads/2022/11/Twin_Dragons_368.png",
                "https://www.twindragonscomic.com/wp-content/uploads/2016/04/Twin_Dragons_036.png",
                "https://www.twindragonscomic.com/wp-co...
#

I double checked it just now. You are right I thought it loaded one less, but apparently it didn't.

However, I just ran this test again. And you are right, it could still load all previous images and 1 extra. So now only

                "https://www.twindragonscomic.com/wp-content/uploads/2016/04/Twin_Dragons_036.png",
                "https://www.twindragonscomic.com/wp-content/uploads/2018/12/Twin_Dragons_174.png",

it couldn't load.

I guess Ill have to use a differen...

#

Ya so we cache successes for a day and we cache failures for 5 minutes. So that explains both why you never see things that used to succeed start to fail, and why testing a single image 20 times with no delay after it failed once failed all 20 of them.

As for why its failing to begin with.. unclear still. Our tracing shows that we are indeed timing out when trying to fetch the images, but its not clear why yet.

chilly siloBOT
chilly siloBOT
#

Description

Hello, when one of my users ran one of the app commands in DMs with the bot it says Unknown Integration despite sharing a mutual server.

Guild ID: 1171977315799011449
Bot ID: 1171978975866793984

Steps to Reproduce

Didn't log any errors or anything so nothing here.

Expected Behavior

It should execute the command correctly by adding the creator to the watchlist, but instead it doesn't function at all.

Current Behavior

Works for me, although for new users t...

chilly siloBOT
chilly siloBOT
#

Description

When adding a super reaction to a message 2 reactions are added instead - one burst & one normal

Steps to Reproduce

  • add a burst reaction to a message
  • see that it has 2 reactions - 1 burst & one normal
    • might need to reload the client to appear
    • or get the message through the API

Expected Behavior

Only a single burst reaction is added

Current Behavior

One burst and one normal reactions are added

Screenshots/Videos

https://github.com/disc...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

The GET /webhooks/ Endpoints are not documented as requiring any Server Permission, yet trying to fetch a Webhook owned by the App/Bot calling the endpoint, while said Bot doesn't have the MANAGE_WEBHOOKS in the Channel/Server the Webhook is in, results in a "Missing Permissions" error.

This can also affect App-owned Webhooks created via OAuth, in addition to created via the standard Bot API.

Ste...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

i am having the same issue message update is sending me message update event after hours and that too in bulk

i have a bot which listen to message update event and do calculation based on the message and save to database then send to same channel
but idk its working fine
but its sending old embeds message and updated database and there is no error in my console i checked my code and no errors

normally it works like :
![image](https://github.com/discord/discord-api-docs/assets/840...

chilly siloBOT
#

Description

When attempting to use an application command using /, no commands appear. In the request log a 404 error is logged for the /guilds/{id}/application-command-index API.

This was discussed in the Discord testers server (#989649167934693456 message), and it was discovered that this does not happen on canary, which is very weird. Another user was however able to repro on ptb as well.

Steps to Reproduce

...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Context: A bot that migrates chat history from another chat service that supports threaded discussions, to a Discord guild.

Problem:
Discord allows 1000 active threads guild-wide, but there is no way to programatically mark a thread as "inactive". This breaks chat migration bots completely as they are able to hit the limit before the lowest archive setting (1 day). Additionally, manually marking a thread programmatically as "archived" still counts toward the active thread limit. The only ...

chilly siloBOT
#

Beside the fact of discord being a despicable piece of trash, both in UX and in UI,
I discovered today that, to my unwilling and unknowingly surprise, this piece of nasty spaghetti code, likes to show to everyone in my status that I'm "playng Eraser", which is nothing else than a file deletion software (https://eraser.heidi.ie/).
Now we use it (because I'm forced to, otherwise I would nuke it down and DDos its servers it 24/7 if it was for me) in a work environment and someone warned me abo...

chilly siloBOT
#

Additional Testing

Send a message with the following settings:

  • The sender is a bot user.
  • The message is being sent to a text channel of a large guild.
  • The message contains a rich embed with an image.

We should log both MESSAGE_CREATE and MESSAGE_UPDATE events in this time.

./debug.json

[
	{
		"t": "MESSAGE_CREATE",
		"s": 4492,
		"op": 0,
		"d": {
			"type": 0,
			"tts": false,
			"timestamp": "2024-03-11T14:12:48.454000+00:00",
			"reference...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

you've set max length as over 45.

It ended up being the text I had in the description field was more than 45 characters.

Nothing in the docs (that I saw) said there was a limit to that. The example I copied from had the max length set to 300 and that example worked fine, but that max length is the length of what you are capturing in the modal input, not the text you give as a descriptor displayed on it.

chilly siloBOT
#

Description

Hi,
GUILD_MEMBER_UPDATEs are a big problem for large discord bots. A quick primer is when a Large bot updates anything todo with it's profile (https://discord.com/developers/docs/resources/user#modify-current-user) this triggers a GUILD_MEMBER_UPDATE to be sent for every single guild associated with that session across all sessions. I cannot understate how much traffic this is all at once. Especially for bots in Millions of servers. This often overloads underlying hardwa...

chilly siloBOT
#

@kyranet we are still figuring out how we want to handle deprecation on that. i can see a world where if you specify intents the opcode will ignore the parameter if you pass it and do not have the intent.

also for any library developers watching this thread we also are considering deeper changes to guild members with intents sooner than later (in light of recent abuse patterns we've been seeing). if we end up moving this direction members intent will have similar limitations ...

chilly siloBOT
#

Description

When a thread is created and you're inside it, if the first message is updated within the thread, it won't be updated for other clients on mobile. This is very inconvenient; this bug only occurs on mobile phones; on PC, the message is updated correctly.

Steps to Reproduce

Write a message in a channel with one account, create a thread on this message, and go into the thread with another account. With your main account, update the first message (from the parent channel), ...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

It would make sense for bots to be able to access user status and user activities because bots can already access stuff like servers, text channels, and so on.

For instance, when making a request to the /users/{user.id} endpoint, instead of receiving only basic user information like:

{
  "id": "80351110224678912",
  "username": "Nelly",
  "discriminator": "1337",
  "avatar": "8342729096ea3675442027381ff50dfe",
  "verified": true,
  "email": "nelly@discord.com",
  "flag...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

This endpoint has some interesting pitfalls when a user is not banned.

  • If a user was already banned, they are in the "failed_users" array
  • If you don't have permissions to ban a user, they also appear in failed users
  • If all users "failed" you get an error response instead
  • The endpoint filters out the self user (does not show up in either array)

I'm not sure about the nullability on the response, based on the API spec they are both optional fields. But it seems to always return...

#
Ban up to 200 users from a guild, and optionally delete previous messages sent by the banned users. Requires both the `BAN_MEMBERS` and `MANAGE_GUILD` permissions. Returns 200 response on success, including a field `banned_users` with the IDs of the banned users and `failed_users` with all that were not be banned. The list of `failed_users` will also include all users that were already banned.
chilly siloBOT
chilly siloBOT
#

Description

I have a private bot that runs on a single server that suddenly is having a very poor performance to send messages to channels. I believe it started in the past few days.
If i use the same bot (same code and same bot api key/secret) on my test server it behaves normally (around 130ms - 300 ms) to send a message thru the api.
When in the live server it takes sometimes over 10 seconds to send a single message, average 2 full seconds.

I am not being rate limited, maybe some...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

the role connections api unfortunately does not require a bot token, it expects that bearer tokens are only used by the app. PKCE allows users to generate their own bearer tokens without the client secret, which would introduce security issues if it worked for this scope.

if the endpoints required both a bot token and a bearer token like some other endpoints, then it would be fine to support implicit grant and pkce, but unfortunately it was too late to change that by the time this issue wa...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

When triggering interaction from within a bot's DM, authorizing_integration_owners[GUILD_INSTALL] contains a number, instead of a string

Steps to Reproduce

  1. Register a command with GUILD_INSTALL integration type
  2. Prepare the session and listen for events
  3. Trigger the said command in bot's DM

Expected Behavior

A string value, in this case "0"

Current Behavior

A number (i.e. 0)

Screenshots/Videos

No response

Client and System Infor...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

I have a server with webhooks set up, with the intended use being for a game client to send posts via the webhook.
Recently, some unknown users have abused the webhook and have been spamming messages that are pinging @everyone and @here.
As this is a community server, I can't easily find out the individual user that has been abusing the webhook - it's possible that a banned user, or even someone that isn't in the server was given the webhook and has been spamming it.

From what I can tell...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

This pull request documents the addition of the integration_type parameter to the OAuth2 Authorization URL. This parameter specifies the installation context for the application, either within a server context (GUILD_INSTALL) or within a user context (USER_INSTALL).

Changes Made

  • Added integration_type parameter to the OAuth2 authorization URL example.
  • Provided explanation about the purpose of integration_type parameter and its values.
chilly siloBOT
#

Description

When copying a slash command via iOS app - and then pasting it - the app only pastes the argument/parameter name of the first parameter (if even), causing all subsequent parameters to be shoved into the first parameter.

Steps to Reproduce

Find a slash command that has more than one argument.
Use it - then copy the command

Paste it -
Observe.

Eg:

I have the following
/imageedit imageurl: https://image.com blur:0.5

Pasting it seems to do:

/imageed...

chilly siloBOT
#

Description

I am Reciving everyting until the opcode 4 but when i try to send the data the udp receives it but nothing happens tried with a discord bot library and the intents are correct and the bot can speak he has the permission

Steps to Reproduce

import socket
import struct
import nacl.utils
import json
import asyncio
from pyogg import OpusEncoder
from nacl.secret import SecretBox
import websockets
from Crypto.Cipher import Salsa20
import struct
import subprocess
imp...

chilly siloBOT
#

I can reliably reproduce this error for my bot. As another concluded in this thread, fundamentally it's not an issue with discord.js. Discord's API is giving you an HTTP 404 because it can't find the interaction for what is very likely a legitimate reason. In my case it comes down to Node.js processing capabilities and the interaction between two of my bot's commands, one deferred and one not.

I have a CPU-intensive command that constructs and attaches an image. At the high end this comman...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

global_name is documented as required but some gateway messages don't have them. I think this is related to https://github.com/discord/discord-api-docs/issues/6463.

Steps to Reproduce

I haven't tried to reproduce this yet. I'm not even sure why this got sent as a MESSAGE_UPDATE rather than a MESSAGE_CREATE -- probably because the embed? I think I can reproduce this by sending a webhook message w/ an embed but I haven't confirmed that. Maybe it has to do with the g...

chilly siloBOT
#

Description

Under Application Command Structure, both the new integration_types and contexts fields are documented as non-nullable and with defaults.

If you create an application command that doesn't specify:

  • integration_types: it will be [0] (as the documentation says: "Defaults to GUILD_INSTALL (0)")
  • contexts: it will be null (despite ...
chilly siloBOT
chilly siloBOT
#

Summary

Polls!

Hey folks, Discord plans to add first-party support for polls. The feature has started it's old good experimentation phase today, so now's about the time to document it as well. We expect that bots will be able to create these first-party polls when they become available. As usual this is subject to change yadda yadda no guarentees yadda yadda, but I personally I don't expect any changes.

However... some things are still being implemented right now for bots:

  1. We...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Both the expiry field and the old duration field suffer from the same problem of using time based math instead of calendar math. When datetime calculates extend >1 day you want to use calendar based math so it meets human expectations when e.g. DST transitions happen. Right now since this is a flat hour calculation you end up with the poll expiring +/- 1 hour from what you originally intended during these transitions.

Note that events suffer from the same issue as well but I'd rather t...

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

If you decide to fetch /oauth2/@me with an access_token instead of /users/@me, you will NOT get the email field, the locale field, the mfa_enabled, verified and maybe other fields as well.

This pull request aims to clarify that the user object is partial. Since that is only said for the application object right now.

Also, for other app developers reading, I see you can get the scope field from /oauth2/token, so I just changed back to using /users/@me when I noticed all...

chilly siloBOT
#

I am trying to build myself a small auto updater tool for the Discord Client on my Fedora machine.
I have a less_packages == better rule, so I use the tar.gz version and it is very annoying to constantly get the "Must be your lucky day.." popup every time I want to run the Client.
I am able to automate the download, extract and replace old directory part of the process but fetching the latest build version to compare against the ~/resources/build_info.json version and determine the ne...

chilly siloBOT
chilly siloBOT
#

I wanted to chime in and say I'm having the same issue with images not appearing in embeds, albeit with discord.js, and I'm serving them from my AWS S3 bucket. Historically they don't appear on occasion and attempting the same request a second time works, but it's been pretty reliably failing no matter the number of retry attempts in the past 24 hours. Pasting the image URL by itself causes the image to appear just fine

chilly siloBOT
#

Description

When executing a webhook with a new avatar_url the message doesn't send a all if you don't have wait=true and if you do have it, it sends but doesn't have an avatar.

It also seems inconsistent and works fine 1/10 tries. This just started happening today (23rd) sometime around 9am ET.

Steps to Reproduce

Using my GitHub avatar here as a demo but it is not limited to GitHub avatars it's any image png, jpg, etc we try.

curl -X "POST" "$DISCORD_WEBHOOK?wait=...
chilly siloBOT
chilly siloBOT
#

I am hoping there is an existing way to do this -- I want to be able to use discord oauth2 for 'login' only, not 'signup'. That is, if the user is not already authorized, return a failure instead of showing the consent screen. I can, of course, immediately call the revocation endpoint and revoke the new authorization, but I'm hoping Discord has a way to do this more cleanly.

chilly siloBOT
chilly siloBOT
#

Description

context and authorizing_integration_owners are missing on incoming slash command interactions if the user has not authorized the application.

Note that this may not be isolated to slash commands, I have not tested other interactions

Steps to Reproduce

  • Create a slash command
  • Add the bot to a guild (but not your individual user account)
  • Run the command, keys are missing
  • Authorize the bot to your user account
  • Run the command again, keys are present

##...

chilly siloBOT
#

They could do that now, couldn't they? And wouldn't do them any good since they wouldn't have the secret to actually use the response code. There are other oauth2 implementations that indeed treat prompt=none strictly -- that is, they return an error instead of asking for consent, if the user hasn't already given it. I would just like to avoid the steps of fetching a token, fetching account information, and then immediately revoking the token (if the account isn't already signed up with us).

chilly siloBOT
chilly siloBOT
#

Description

I've observed recently that all webooks, even ones to different channels, return the same X-RateLimit-Bucket header. As a result this the limits the requests across an entire community to 5/1s. Though I don't have logs that can confirm, I believe webhooks used to return a unique X-RateLimit-Bucket for every channel, not a single one for an entire community. The documentation here, if I'm reading it right seems to confirm [X-RateLimit-Bucket](https://discord.com/developers/do...

chilly siloBOT
chilly siloBOT
#

We haven't been able to repro and see other instances of this happening. We've added some internal tracking to monitor this but I'm going to close this out

I can give you some ids if that helps:

messages:
1221878966722232351 took 5220ms to send
1221874976974442529 took 4820 ms
1221873797855055902 took 6338ms
1221872039795884122 4728 ms
1221871162062016562 5154 ms
1221866988851429479 7998 ms
1221866449778507806 6806 ms
1221866378919809084 7423 ms

all examples of the past 2 h...

chilly siloBOT
#

So right now a server without boosts has 8 slots, raise this to: 10
Server Boosting Level 1, change it from +16 to +20. So total 30 for Boosting Level 1
For Boosting Level 2, change it from +12 to +15. So total of 45 for Boosting Level 2
For Boosting Level 3, change it from +12 to +25. So total of 70 for Boosting Level 3

This way people will boost servers more and they don't have to make multiple servers to have all their favorite sounds.

chilly siloBOT
#

I think the issue is upstream of us, because looking at the problematic server, I can see the following response latencies from your bot user and the message send endpoint since the beginning of the month:

  • Average Response Time: 105 milliseconds
  • 90th Percentile Response Time: 152 milliseconds
  • 95th Percentile Response Time: 183 milliseconds
  • 99th Percentile Response Time: 343 milliseconds
  • Maximum Response Time: 3,026 milliseconds
chilly siloBOT
#

I think the issue is upstream of us, because looking at the problematic server (1076155409481601044), I can see the following response latencies from your bot user and the message send endpoint since the beginning of the month:

  • Average Response Time: 105 milliseconds
  • 90th Percentile Response Time: 152 milliseconds
  • 95th Percentile Response Time: 183 milliseconds
  • 99th Percentile Response Time: 343 milliseconds
  • Maximum Response Time: 3,026 milli...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Since the beginning of the year, I've been experiencing a problem with the Oauth2 Discord API. Randomly, Oauth2 tokens return "401 Unauthorized" when I try to retrieve the associated user (after refreshing the token) or the token information with the introspection route. This causes a loop and a denial of service on my API every time a buggy user logs in with his Discord account on my platform. The loop problem has been fixed but I still got Cloudflare Ban 24 hours because of it. There's a hu...

chilly siloBOT
#

When receiving an interaction via a gateway event, you respond to it using an HTTP request to Create Interaction Response, which allows you to upload files.

However, when responding to interactions received via an HTTP request by Discord, it is apparently not possible, currently, to upload files in response. In contrast to Create Interaction Response, you cannot respond with `multip...

chilly siloBOT
#

Description

It seems like since the backend support for user commands had been added, context menus doesn't work if the user got no send messages permission.

I think these commands should at least work, when the response is ephemeral.

In our case we got a feedback system, where users fill modals with there feedback and webhooks post it, so the users itself got no write perms. However they should be able to report feedback trough context menus, which doesn't work now.

Steps to...

chilly siloBOT
#

Hey! Just a few questions to better understand this:

  • Is the application you're using installed to the server or to your users? (docs)
  • Was this working in your server before and broke, or is this more of a feature request?

I see the frontend has a couple bugs reported here where it's letting you try to run commands that will fail due to permission checks, and changing channels is losing the reason for it...

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

Since the beginning of the year, I've been experiencing a problem with the Oauth2 Discord API. Randomly, Oauth2 tokens return "401 Unauthorized" when I try to retrieve the associated user (after refreshing the token) or the token information with the introspection route. This causes a loop and a denial of service on my API every time a buggy user logs in with his Discord account on my platform. The loop problem has been fixed but I still got Cloudflare Ban 24 hours because of...

#

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


Von: Alphabet @.>
Gesendet: Freitag, Mรคrz 29, 2024 1:17:33 PM
An: discord/discord-api-docs @.
>
Cc: Subscribed @.>
Betreff: [discord/discord-api-docs] Random 401 Unauthorized on OAuth2 for some users on @.
& ***@***.***. (Issue #6769)

Description

Since the beginning of the year, I've been experiencing a problem with the Oauth2 Discord API. Random...

#

I was going through the discord documentation, when I came across the endpoint "/users/{user.id}" , here email is also mentioned as a parameter, is it like discord leaks user-email to admins/bot-users ?
@hawl1 Please, inform about the email param?

e-mail reply was just an example, and I did NOT mean that activities.read should also get email address, sorry for any confusion that happened, I just wanted a activities property.

#

It would make sense for bots to be able to access user status and user activities because bots can already access stuff like servers, text channels, and so on.

For instance, when making a request to the /users/{user.id} endpoint, instead of receiving only basic user information like:

{
  "id": "80351110224678912",
  "username": "Nelly",
  "discriminator": "1337",
  "avatar": "8342729096ea3675442027381ff50dfe",
  "verified": true,
  "email": "nelly@discord.com",
  "flag...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

It's hard to debug per the description... We fixed a bug where apps could create several tokens earlier this year, I guess you still experiencing the issue now?

Yes, I'm currently encountering this issue. I understand debugging can be challenging, and I apologize for any inconvenience. Due to the considerable time it takes for the error to occur, I'm uncertain about its specific trigger.

If it helps, I can reach out to you on the Discord Developer server and provide you with a user ID and...

chilly siloBOT
#

Description

The API rejects PATCH /channels/:id requests if the description contains emoji message formats / of emojis hosted in guilds the changing entity (moderator/bot) is not in.

I see how it makes sense to restrict the emojis one can set initially, but the current behavior prevents any changes from being applied to the channel by staff/bots that do not share the guild the emoji is hosted in.

Error code 50035 CHANNEL_TOPIC_INVALID "Channel topic contains at least ...

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

Description

If I try to sync commands (PUT /applications/{app_id}/commands), user install commands don't work. I tried all contexts with included USER_INSTALL integration type. Says "invalid interaction application command". Discord restart fixing it, but it's unconvinient
My command payload

{
    "name": "permissions",
    "description": "Check permissions",
    "type": 1,
    "integration_types": [1],
    "contexts": [0, 1, 2]
}

(Sorry for my english)

Ste...

chilly siloBOT
chilly siloBOT
#

As many of you have mentioned this is is a feature request to force guild apps responses to be ephemeral. I've updated the issue to reflect that. This is something we've actually decided against doing because it would be considered a breaking change.

We could potentially look at other ways of doing this in the future so I'm going to leave this open as a feature request.

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

Description

On older Messages (circa Feb-2024), the interaction_metadata object is not present while the deprecated interaction object is the only source of the equivalent information.

Steps to Reproduce

  1. Use a Message Component on a message created before February 2024.
  2. Use a Message Component on a message created after March 2024.
  3. Notice the former does not have an interaction_metadata object in its message Object.

Expected Behavior

I expected that the old...

chilly siloBOT
#

Trace #8 started 1m ago
0.002 ๐Ÿƒ AppState changing from active to background
๐Ÿƒ โ†ช JS Imports 3197ms
0.007 ๐Ÿ’พ Start db.fs_info
0.037 29 ๐Ÿฆฅ _subscriptions
0.101 46 ๐Ÿฆฅ MobileAppDatabaseManager
0.128 ๐Ÿ’พ Start Dispatch WRITE_CACHES
0.187 ๐Ÿ’พ Start trimOrphanedChannels
0.190 183 ๐Ÿ’พ Finish db.fs_info
0.235 107 ๐Ÿ’พ Finish Dispatch WRITE_CACHES
0.255 68 ๐Ÿ’พ Finish trimOrphanedChannels
3.649 ๐Ÿƒ AppState changing from background to active
3.653 ๐Ÿ’พ Start kv.get
...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

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


Von: shay @.>
Gesendet: Dienstag, April 2, 2024 8:38:22 PM
An: discord/discord-api-docs @.
>
Cc: Subscribed @.***>
Betreff: Re: [discord/discord-api-docs] fix: merge conflicts (PR #6783)

Merged #6783https://github.com/discord/discord-api-docs/pull/6783 into main.

โ€”
Reply to this email directly, view it on GitHub<https://github.com/discord/discord-api-docs/pul...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

When retrieving message attachments via the Discord API, an issue arises with the determination of the MIME type for certain filename extensions. Specifically, when an attachment is named "somename.mp3.gz" and its content is a gzip-compressed file, the API incorrectly returns the MIME type as audio/mpeg instead of the expected application/x-gzip. This discrepancy between the expected and actual MIME types could lead to misinterpretation of file content by applications o...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Given user apps are now in beta, it's quite essential for us bot developers to have the ability of editing messages without creating many notifications to the DM user. For this reason, I'd like to request allowing message app commands to work with bot responses.

That way the users aren't forced to delete or keep sending in dms, instead of just simply being able to have an edit in place. Currently interactions allow to edit in the first 15 minutes, but it's essential to allow this interacti...

chilly siloBOT
#
const { Client, GatewayIntentBits } = require('discord.js');

const client = new Client({
    intents: [
      GatewayIntentBits.Guilds,
      GatewayIntentBits.GuildMessages,
      GatewayIntentBits.MessageContent,
      GatewayIntentBits.GuildMembers,
      GatewayIntentBits.DirectMessages,
    ],
  });

const token = '...';
const guildId = '1195451831149658225';
const channelId = '1196091248201695262';

client.once('ready', async () => {
    console.log('Bot is read...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

It's hard to debug per the description... We fixed a bug where apps could create several tokens earlier this year, I guess you still experiencing the issue now?

We've just been banned for another 24 hours during the session refresh. Our web platform has a high connection traffic (we can easily reach 10,000 failed connections in 10 minutes), which penalizes us heavily and prevents our users from connecting. We have had to temporarily disable the OAuth2 connection to Discord and invite dis...

chilly siloBOT
#

Description

The endpoint GET /webhooks/{webhook.id}/{webhook.token} is returning the user object, despite the API documentation explicitly stating that it should not be returned when retrieving a webhook using its token.

Steps to Reproduce

  1. Send a request to GET /webhooks/{webhook.id}/{webhook.token} with valid webhook ID and token.
  2. Inspect the response received from the API.

Ex...

chilly siloBOT
#

The API has many paginated endpoints, usually with a subset of these parameters:

  • before
  • after
  • limit

However, the behavior of these endpoints is inconsistent to the point of having to debug each one. This becomes increasingly problematic when endpoints are locked behind monetization or other walls, like with entitlements.

Some of the observed "flavors" of pagination used in the API:

  • [...
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

My server has a custom context menu command to report messages to staff members of the server, just today members were confused why they couldn't report messages in our #welcome channel.

I would appreciate some sort of change that would allow ephemeral responses to be possible, as it's confusing that the app command is available to be used there, but doesn't work and just errors out.

chilly siloBOT
#

Hello,

You seems tu be using what can be called "cutting edge" technologies as mentioned in your profile.
Did you know that the most part of theses (rust, typescript, etc) are more recent than ipv6 itself ?

For the voice part, I not against the fact that this demand some twearks, but for the "public" api, that use some websockets or http, by already using a cloudflare proxy, what block you to enable the ipv6 radio button, to allow a more infrastructure from the developers usings theses...

chilly siloBOT
#

Decided to test this myself. Was curious if it was some weird thing with like it just pulling the first file extension. Here's my bot code:

const Eris = require("eris");
const dotenv = require("dotenv");
dotenv.config();

const bot = new Eris(process.env.TOKEN);

bot.on("ready", () => {
  console.log("Ready!");
});
bot.on("messageCreate", (msg) => {
  console.log(`${msg.id} > `, {
    filename: msg.attachments[0].filename,
    content_type: msg.attachments[0].content_type,
...
chilly siloBOT
#

make the general text args support multiple lines

Technically this is already supported. At least when using the Android discord app it's possible to enter newlines in the text field of any argument, and bots can receive them as text with newlines in the payload.

I just have no idea how to enter a newline on web/native client. None of: Shift+Enter, Ctrl+Enter, Alt+Enter work. Also tried copying a newline to the clipboard and pasting, it just comes out as a space

chilly siloBOT
#

As this is rolling out, I would like to reiterate the need for it's own permission to post polls (and potentially vote in polls, but at least posting). I know this was previously shared in https://github.com/discord/discord-api-docs/pull/6746#issuecomment-2013967394 but with the announcements and the FAQ saying it's "rolling out to all users over the next couple of days" I have real concerns as an admin mainly.

It s...

chilly siloBOT
#

Description

bots are allowed to use lootboxes endpoints, they can open lootboxes, get their stats and redeem prize

Steps to Reproduce

get statistics of opened lootboxes and redeemed_prize

curl -X GET 'https://discord.com/api/v9/users/@me/lootboxes'\
 -H 'Authorization: Bot '\
 -H 'X-Super-Properties: '

open a lootbox

curl -X POST 'https://discord.com/api/v9/users/@me/lootboxes/open'\
 -H 'Authorization: Bot '\
 -H 'X-Super-Properties: '

redeem pr...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

It should update the metadata when it is registered, but it still stays on "name" value. It doesn't really about your local language on Discord.

Code

const body = [
    {
        key: "messagecount",
        name: "Message Count",
        name_localizations: {
            tr: "Mesaj Sayacฤฑ",
        },
        description: "Number of messages sent in the server",
        description_localizations: {
            tr: "kadar mesaj yollamalarฤฑ lazฤฑm.",
 ...
chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

This is as designed at the moment. For user apps emoji usage is determined by the user who ran the command. This was intentional. We're re-evaluating if this is the path we're going to stick with moving forward or change it to match the behavior of guild apps.

But the thing is;
User -> Apps' emoji works perfectly fine by User App command.
But when it is Message -> Apps' emoji by User App, it is not rendering.

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

And? The issue OP has is, that these automod rules are still just the basic stuff you have in your server settings, meaning you can't define a custom parameter to configure. Only a String to trigger on (optionally treated a regex) and actions to perform, which are the same as normal auto mod (block message, timeout user, report message to channel).

At least that's what I gathered. Not sure if Discord has changed some stuff, but I doubt it...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

In the haste to implement "Polls" for all users, server administrators find themselves without the option to disable this feature for members. We need the same level of control over Polls as we have for Threads.

Currently, bot developers can bypass these restrictions and create custom scripts to automatically delete polls if they are not created by a user with specific permissions.

However, this solution does not address the needs of the broader Discord user base, that isn't a normal b...

chilly siloBOT
#

Please accept this PR so that bots can begin working with this API ASAP. There really is no reason this should have gone live without documentation.

If the API is not ready to handle polls officially, it's better to wait. For the time being you can still interact with the poll object on the incoming packets.
There may be a couple more spots where it comes through but not officially documented.

There's still reviews and feedback for the API docs that needs done (as you can see from...

chilly siloBOT
chilly siloBOT
#

Found a fun little bug with the current polls api rollout that allows you to create a forum post that nobody can send messages in. Simply send this payload to a webhook attached to a forum channel:

{
  "thread_name": "Woodchucks",
  "poll": {
    "question": {
      "text": "how much wood would a woodchuck chuck if a woodchuck would chuck wood?"
    },
    "answers": [
      {
        "poll_media": {
          "text": "all the wood"
        }
      },
    ],
    "durati...
chilly siloBOT
#

Nope wait for discord. Itโ€™s an issue all across the API. Itโ€™s pervasive in
JS and in any other wrapper that you decide to use like dart or Java. The
issue is with Discord not with anything that weโ€™re doing wrong. But this is
a pretty low level BUG. That being said, I donโ€™t expect it to be fixed
anytime soon because of how insignificant it is

On Thu, Apr 11, 2024 at 23:49 Zhongsheng Ji @.***>
wrote:

Guys, we are experiencing the same problem, is there anything we can do to...

chilly siloBOT
chilly siloBOT
#

Yes we have systems internally that depend on ipv4 addresses. These systems need to be upgraded to handle ipv6 before we can switch the toggle. If it was simply a 5 minute flip a flag in Cloudflare we would have already done it.

Unfortunately it is not, and the assumption that IPs are v4 goes pretty deep in the system and its persistent data stores.

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Define an "active" property boolean value specifically made for this functionality alongside the existing archive functionality. This allows developers to programmatically mark a thread as "inactive", which automatically marks the thread as "archived" as well, but with added benefit that threads can also be marked as "active + archived" or "active + unarchived".

active could be defined as archived NOR locked

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Sorry folks this PR has been delayed, mostly because I went on PTO for 3 weeks. =P I also admit that the feature timing is weird, but I'm just gonna leave it at that and focus on work.

Also I acknowledge the debate around permissions. Part of the delay in getting this stuff out has been in part due to internal discussion about permissions. The discussion is long and nuanced for various reasons that I'm not gonna get into here, and the discussion needs to be over since adding a permission i...

chilly siloBOT
chilly siloBOT
#

Thanks for the update @tpcstld! Hope your PTO was good.

Also I acknowledge the debate around permissions. Part of the delay in getting this stuff out has been in part due to internal discussion about permissions. The discussion is long and nuanced for various reasons that I'm not gonna get into here, and the discussion needs to be over since adding a permission is a one-way door for us. There is more discussing on Monday and this is basically all I want to say about permissions right now...

#

I think for the most part I'm good. I'm sure there are some API-only bugs still hidden though. :P

If people want to specifically test out components/embeds/content alongside a poll with bots that might be nice, and editing messages since honestly I shipped the API changes but I didn't test too much compared to the possible complexity XD

Otherwise stuff like https://github.com/discord/discord-api-docs/pull/6746#discussion_r1536461865 and https://github.com/discord/discord-api-docs/pull/6...

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

Description

The documentation mentions an avatar_decoration field, but when I retrieve the user data (GET https://discord.com/api/users/@me), the API returns an avatar_decoration_data field:

{"id":"userId","username":"example_user","avatar":"avatar_hash","discriminator":"0","public_flags":4194368,"flags":4194368,"banner":null,"accent_color":null,
"global_name":"User","avatar_decoration_data":{"asset":"hash","sku_id":"id"},"banner_color":null,"clan":null,"mfa_enabled":true...
chilly siloBOT
chilly siloBOT
#

I've been experimenting with user apps lately and realized some unexpected behavior or at least from my team's perspective when it comes to the behavior from the types. And I was wondering if this proposal can be applied in order to give some consistency or flexibility in the design of user apps.

GUILD_INSTALL is present GUILD is present Current behavior Expected Behavior
False False Not in servers Not in servers
False True In servers ...
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Description

When specifying a timestamp for dms_disabled_until further in the future than 24 hours (+ 1 minute for whatever reason), the API delivers a 400 response but reads DMs disabled until time cannot exceed 12 hours into the future.

The accurate count is (as mentioned before) 24 hours 1 minute in the future, but could probably get away with changing the message to reflect 24 hours. Not sure why that minute's there, it's probably something I'm just not familiar with yet as I'...

chilly siloBOT
#

Description

If the user has the perm overwrite of manage permission (also known as MANAGE_ROLES) on a channel or a categorie, it could also give to himself permissions he don't have. He can also manage permission of higher roles.

Steps to Reproduce

  • Create a role with no given permissions
  • Create a Permission Overwrite in a categorie or a channel allowing to edit permissions (manage_roles)
  • Give this role to a user
  • Use this user to go in settings of channel (or categorie) a...
chilly siloBOT
chilly siloBOT
#

Description

Since the update of the fixed width font for code blocks, certain types of code block no longer correctly render emojis.
Attached are two examples from latest stable android release and latest stable desktop release, showing code blocks in embeds which should contain the emojis :rightwards_hand_tone1: and :coin: (inserted directly as UTF-8). This was working previously and suddenly stopped working. Certain other emojis such as โ— work fine however.

As you can see this beha...

chilly siloBOT
chilly siloBOT
#

Please accept this PR so that bots can begin working with this API ASAP. There really is no reason this should have gone live without documentation.

If the API is not ready to handle polls officially, it's better to wait. For the time being you can still interact with the poll object on the incoming packets. There may be a couple more spots where it comes through but not officially documented.

There's still reviews and feedback for the API docs that needs done (as you can ...

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

Uncertain if this is a desired PR, though these VC encryption modes have been available in and used by the official Discord user client for at least the last year. I'm certain of the probability of at least a few of the existing modes (new and old) being deprecated in favor of newer/more modern ones as time progresses -- given the succession of all xsalsa20 modes in favor of xchacha20 broadly across the industry, iirc based on my research ages ago.

Regardless, I offer this PR in hope...

chilly siloBOT
chilly siloBOT
#

This permission allows a role to create new roles beneath them, then edit them accordingly. Keep in mind that this role comes 2nd to the Administrator role, and although you can add, edit, and assign new roles to users, you still can't edit your role and roles above yours. Additionally, you can only assign permissions that you have to roles under you. If your role doesn't have banning members enabled, you can't let other users ban them either. Duh.

This was perfect in my case... So this ...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

@MinnDevelopment, great timing! I'm tracking this down this week, and we will have an update shortly.

As @advaith1 mentioned, the following note in the change log is still true but the plan is to make them available to devs soon.

These were rolled out in July 2023 to users and roles and have been added to our developer documentation but are not yet available to app developers.

chilly siloBOT
chilly siloBOT
chilly siloBOT
#

If the API is not ready, why was this feature made public? It's not like anyone knew it was coming... it could have been delayed for months, and no user would have been upset because it wasn't announced.

There is a chicken vs egg problem here. We need to get the feature in the hands of actual people often to stress test, confirm assumptions, and also to feel out if it matches with the platform. We do various levels of release to accomplish that.

#

I don't mean to be rude, but there is no conclusion that is acceptable for server owners other than adding a new permission for this. They are already being spammed. I do not want anyone other than moderators to be able to post them. As is, the only way to prevent every single user who has the ability to send messages from using polls is with third party applications, and that is not acceptable.

Definitely heard.

chilly siloBOT
chilly siloBOT
#

It would be helpful to support one time payment SKUs. I'm building an app that heavily relies on generative AI and I'm exploring what sort of payment model would work best, while ensuring I don't lose money on model usage. One idea is to have a credit based system where users prepay credits that get deducted at they use AI related features. I'm worried that with a pure subscription model, heavy users will end up costing me too much money, forcing me to raise subscription prices higher. I can ...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

unsubscribe

On Tue, 16 Apr 2024 at 9:29โ€ฏPM TheKing-OfTime @.***>
wrote:

Looks like Text/Description component for modals is now implemented and
will be available very soon. Original
https://github.com/Discord-Datamining/Discord-Datamining/commit/6cd090e40e59e34e360d23afb51d05ac879c958a#commitcomment-141034450
image.png (view on web)
https://github.com/discord/discord-api-docs/assets/68960526/e968de27-d0ef-4e72-8119-30b4f13b807c

โ€”
Reply to this email dir...

chilly siloBOT
chilly siloBOT
chilly siloBOT
chilly siloBOT
#

This is private information about the user that should not be exposed publicly. As such, accessing it requires the IDENTITY oauth scope.

There is no reason to make it private, other than to inconvenience developers, aswell as silently removing it without actually mentioning it rather having to look for a git issue reporting the "issue".

Now i have to look for another method to determine a discord's account suspicious level when used to join game servers.
As external service oauth i...

#

There is no reason to make it private, other than to inconvenience developers, aswell as silently removing it without actually mentioning it rather having to look for a git issue reporting the "issue".

It was not mentioned to be public nor was it part of the documented API without the scope. These comments are not justifiable: you relied on undocumented and unintentional behaviour.

#

There is no reason to make it private, other than to inconvenience developers, aswell as silently removing it without actually mentioning it rather having to look for a git issue reporting the "issue".

It was not mentioned to be public nor was it part of the documented API without the scope. These comments are not justifiable: you relied on undocumented and unintentional behaviour.

Perhaps discord should focus on making the api documentation more clear then, and then silently re...

chilly siloBOT
chilly siloBOT
#

it is also empty in GET /webhooks/{webhook.id}/{webhook.token}/messages/{message.id}

This endpoint will start including both reactions and poll results.

But actually I've been thinking about my decision in https://github.com/discord/discord-api-docs/pull/6746#discussion_r1536461865 and I actually think it's better for the future if results is nullable for gateway events and maybe some API endpoints. There is a certain amount of complexity for getting results for the gateway event th...

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

Final issue i've found, sending content and embeds with polls works fine but it seems attachments collide with undocumented poll features; could this be disabled for now, or are we meant to implement compatibility...?
Specifically, 50035 Invalid Form Body - In poll: Poll attachment_ids must correspond with attachments data

Yes, there was PollLayoutType.IMAGE_ONLY_ANSWERS with value 2 available, probably that.

chilly siloBOT
chilly siloBOT
chilly siloBOT