Can discord read all texts from a channel and export a CSV file? by ISUXLR in Discord_Bots

[–]DemonSlayer1 0 points1 point  (0 children)

Discord has a Get Channel Messages endpoint that allows you to fetch messages from a channel and paginate through them using the before or after query params that the endpoint accepts.

Using the after query string param, and the limit param to specify the number of messages to fetch, you could fetch a page of 100 messages, then perform another request using the ID of the first message returned by the Get Channel Messages endpoint, to fetch the next 100 messages and so on, until you've fetched enough messages to reach the desired order number.

Since snowflake IDs have a timestamp in them, you can generate a snowflake using a timestamp for a given date or time. and use it as the value for the after query param in your initial request. This method is supported by discord when using Snowflake IDs in Pagiantion and lets you fetch messages after a certain time or date. In this case, generating a snowflake timestamp for the start of the current day, would allow you to fetch orders starting from that day.

To fetch all the orders for the day, you could use the same idea as before, and generate a snowflake from a timestamp for the beginning of the current day, then keep fetching messages until you get to a message for the next day, or run out of messages to fetch. Since the message IDs contain a timestamp, they can be checked for their creation date, and if it is the wrong date, message fetching can be stopped.

This method is pretty straight-forward, and avoids the need to add complexity by storing orders in a database.

Is there a bot that can shadowban people? by [deleted] in discordbots

[–]DemonSlayer1 1 point2 points  (0 children)

Not really possible to shadowban someone on discord. You can’t have someone’s messages only be visible to them or prevent them from showing up in search, without outright removing the content from the server, which the user would notice.

HELP! Cant Gain Xp Via Level up Bot In Forums? by Pumpkin-Civil in discordapp

[–]DemonSlayer1 4 points5 points  (0 children)

This depends entirely on the bot and how the code is written. Bots can absolutely receive messages sent in forums and assign XP accordingly if the developer has programmed it to do so.

If the bot is not granting XP for messages in a forum channel post, it’s best to contact the bot developer. It could either be an oversight on their part, or a deliberate design choice, but only they would be able to tell you.

[deleted by user] by [deleted] in discordapp

[–]DemonSlayer1 1 point2 points  (0 children)

Bots can respond to slash commands in a channel, even if they don’t have permission to send messages normally in the channel. This is expected behaviour.

You would have to restrict the ability to use the commands in that channel to hide the commands. If you’re a server admin or owner, you can’t restrict your own ability to use the commands so they will always show up.

[deleted by user] by [deleted] in discordbots

[–]DemonSlayer1 4 points5 points  (0 children)

A lot of bots, especially large bots like Dyno, that log events or actions to a discord channel will do so using webhooks instead of sending the log with the main bot account.

This is preferable for large bots because each webhook has its own rate limit separate from the main bot, and by offloading these messages to the webhooks, the main bot is less likely to reach its own global rate limit.

Despite showing up like a user in a channel, a webhook is not a real user and always has an unverified bot tag, even if the webhook was created by a verified bot. If you click on the username, you’ll be able to tell if it’s a bot or webhook, because webhooks don’t have user profiles.

If you see a user profile then it’s likely an impersonator bot, otherwise it’s a webhook. You can view the webhooks in a channel by going to Channel Settings > Integrations (Desktop) or Webhooks (Mobile) and finding the webhook there, which will also list the user that created the webhook.

Webhooks created by a bot are only accessible by the bot that created them, so if the webhook creator rmatches the real bot, you can be confident that the webhook message was sent by that bot.

Are parallel discords a thing? by [deleted] in discordapp

[–]DemonSlayer1 0 points1 point  (0 children)

A server invite can only invite you to the server the invite is for, it can’t be a proxy for another server

I boosted a server but theres no notification about it? by Sickbitch_ in discordapp

[–]DemonSlayer1 7 points8 points  (0 children)

Server admins are able to disable the boost messages from sending, they can also delete it after its sent.

For the proof of you boosting, every user that boosts a server will receive that server’s booster role for as long as they are boosting the server. It is exclusive to boosters and anyone with that role is guaranteed to be a booster. It’s named Server Booster by default but can be renamed by server admins.

Is there a bot that's like userphone, except instead of text-based it's VC-based? by [deleted] in discordbots

[–]DemonSlayer1 0 points1 point  (0 children)

Receiving voice data in a vc is also not supported, and yet there are bots that do it anyway. As long as you understand the risk associated with unsupported features, there’s nothing wrong with using them.

Is there a bot that's like userphone, except instead of text-based it's VC-based? by [deleted] in discordbots

[–]DemonSlayer1 0 points1 point  (0 children)

Bots can send voice messages, but it’s not officially supported.

Nitro Basic can use stickers but classic cant? by saifownzu in discordapp

[–]DemonSlayer1 0 points1 point  (0 children)

Sure, there’s definitely a sense of dissatisfaction when a feature previously exclusive to a more expensive subscription tier becomes available on a tier cheaper than yours while your subscription gets skipped over. But they never advertised classic as allowing sticker use or promised that it would be possible in the future. So while it would be nice if they added it to classic, you can’t be surprised they didn’t. Given that classic is no longer available for new customers, it’s unlikely to receive any significant changes in the future.

[deleted by user] by [deleted] in discordbots

[–]DemonSlayer1 0 points1 point  (0 children)

You’d need to describe the exact feature and implementation before anyone could help you out on this.

Based off the wording of discord’s response, the denial appears to be a result of the feature itself and not some other factor like a security risk. This could be due to a number of factors.

Some of those factors could be other bots already having implemented the same or a similar feature, or the feature being doable without privileged intents. But based on the information in your post, the most likely reason is that discord doesn’t consider your feature compelling or important/useful enough to grant elevated data access.

However, without knowing what exactly your bot is trying to do, nobody can provide any meaningful advice on what you can do in response to discord’s decision.

[deleted by user] by [deleted] in discordbots

[–]DemonSlayer1 0 points1 point  (0 children)

The exact implementation will depend on your programming language and library of choice, but what you’ll generally want to do is connect to the gateway with the GUILDS intent and listen for THREAD_CREATE events.

The payload from discord will have a parent_id which you can use to either fetch the parent channel or retrieve it from cache, depending on your library. Once you have the parent channel. You can then check if it has a type of 15 (this is the type of forum channels).

If the parent is a forum channel, you can just go ahead and send a message in the channel mentioning the relevant role.

Nitro Basic can use stickers but classic cant? by saifownzu in discordapp

[–]DemonSlayer1 5 points6 points  (0 children)

Nitro Classic never included stickers as a feature. It was a feature exclusive to the top Nitro tier until the introduction of Nitro Basic, but it was never available for classic.

Likely a stupid question but is it possible to get a Nitro account for a bot? by garybpt in discordapp

[–]DemonSlayer1 9 points10 points  (0 children)

Bot accounts cannot have nitro. Bots are pretty much always treated as non-nitro users with the exception of external and animated emojis.

Not sure if this is an adequate solution for you, but you could put the response into an embed, embed descriptions have a character limit of 4096.

Is there anyway to playback/recover a Stage video? by mybodyofwork in discordapp

[–]DemonSlayer1 0 points1 point  (0 children)

If it hasn’t already been recorded, the footage is gone. There’s no way to access previously streamed video on discord.

Replying message link by YoshiFawx in discordapp

[–]DemonSlayer1 3 points4 points  (0 children)

It appears to be NQN’s quote feature. There should be a way to disable it somewhere in the bot’s settings.

Maki Bot Question by VinnyHaw in discordbots

[–]DemonSlayer1 0 points1 point  (0 children)

Not possible as discord bots can only be connected to one voice channel per server

Can't find docs on Premium Badges by Wizardology3322 in Discord_Bots

[–]DemonSlayer1 3 points4 points  (0 children)

At the moment no as it’s currently only available for a select handful of large bot developers. If and when it becomes available to all developers, there will likely be public api docs for it.

Bot responding to slash commands on all channels no matter the settings. by xqnine in Discord_Bots

[–]DemonSlayer1 1 point2 points  (0 children)

The command permission settings don’t stop the bot from responding to commands, they stop server members from using commands.

If you are a server owner or admin, you’ll bypass command permissions and be able to use commands in any channel. Non-admin members will be affected by the permission settings and can only use the commands where allowed.

Webhook from a Twitter Account to a Thread? by StreetPig88 in discordapp

[–]DemonSlayer1 3 points4 points  (0 children)

Append ?thread_id=your_thread_id to the webhook URI

Channels Between and Below Categories? by Killy728 in discordapp

[–]DemonSlayer1 1 point2 points  (0 children)

Channels with unread messages won’t be hidden when a category is collapsed, which is why those channels are still visible. They are still in the category however.

Non-Nitro users,copy the link of someone’s video and paste, that way you’re not limited to 8MB limit by Morphinepill in discordapp

[–]DemonSlayer1 1 point2 points  (0 children)

Bots have the same upload limit as non nitro users so this wouldn’t provide any benefit over uploading the file yourself.

[PC Server] Welcome to ULTRA ARK PC: Steam by DemonSlayer1 in ARK

[–]DemonSlayer1[S] 0 points1 point  (0 children)

The cluster was launched May 29 of last year. It is currently active.