Comments (7)
It sounds like you use one application and uses it to open gateway clients on each member pc which uses your app. So you would be temp banned for to many connections
from dsharpplus.
Is discord
a DiscordClient
or DiscordRestClient
?
from dsharpplus.
we'd need a clearer link between "bot operates" and "member has issues" than this. if you have any logs to provide that look off, please post them, but this is impossible to accomplish using the supported API - if you are selfbotting or using undocumented routes, we cannot help you
from dsharpplus.
So I have a program which has code like I posted. It uses our bot key for that coders when the program loads it runs that code.
After that, users are being temp suspended on discord and going to https://discord.com/api/gateway shows they we are temporarily suspended
there is no other code, I can print the whole code if it helps. It runs once every 5 minutes for those 3 calls. And after it has run a few times weโre being suspended by discord.
is this a discord issue? And how would this even happen? As it seems it would happen no matter what we do with discord sharp.
from dsharpplus.
Is
discord
aDiscordClient
orDiscordRestClient
?
Discord client.
Full Code:
DispatcherTimer timerAnnouncements = new();
timerAnnouncements.Tick += (sender, e) =>
{
_ = RenderLatestDiscordAnnouncement();
};
timerAnnouncements.Interval = TimeSpan.FromMilliseconds(300 * 1000);
timerAnnouncements.Start();
public static async Task<string[]> GetLatestAnnouncementAsync()
{
var discord = new DiscordClient(new DiscordConfiguration()
{
Token = DISCORD_BOT_TOKEN,
TokenType = TokenType.Bot,
Intents = DiscordIntents.AllUnprivileged | DiscordIntents.MessageContents
});
DiscordChannel channel = await discord.GetChannelAsync(DISCORD_CHANNEL);
DiscordGuild guild = await discord.GetGuildAsync(DISCORD_SERVER);
IAsyncEnumerable<DiscordMessage> messages = channel.GetMessagesAsync(10);
List<string> announcement = new();
await foreach (DiscordMessage message in messages)
{
// Too short? continue
if (message.Content.Length < 3)
{
continue;
}
DiscordMember member = await guild.GetMemberAsync(message.Author.Id);
DateTime messageUtc = message.Timestamp.UtcDateTime;
string content = message.Content;
content = ReplaceUnixTimestampWithRelativeTime(content);
announcement.Add(member.Nickname);
announcement.Add(member.Color.ToString());
announcement.Add(content);
announcement.Add(messageUtc.ToLocalTime().ToString());
break;
}
return announcement.ToArray();
}
from dsharpplus.
It sounds like you use one application and uses it to open gateway clients on each member pc which uses your app. So you would be temp banned for to many connections
I see, why would it ban for single users?
from dsharpplus.
I think for this the issue is we have one bot key being used by multiple clients and then itโs just temp blocking IPs, like you said too many connections.
we are going to look at another approach and consider this an issue with my approach to implement discord and my fault.
thanks!
from dsharpplus.
Related Issues (20)
- Pre-emptive ratelimit warnings when EditResponseAsync() after a response has already been given, HOT 2
- [Commands] Return message object on EditResponseAsync
- [Commands] Upper case letters in name of slash commands HOT 2
- [Commands] Register context menu even if command in group HOT 1
- [Commands] Autocomplete provider throws null reference if command has user parameter
- Lavalink connection HOT 2
- [Commands] ContextMenu commands execute twice HOT 3
- [Commands] Optional enum options in the middle, if left blank cause overflow exception HOT 2
- Polls support
- v5 extensions and events design HOT 18
- [Commands] Command class is assumed to be Group Command in CommandBuilder factory
- [Commands] Having multiple optional command parameters that some are left blank causes them to move forward
- VoiceNextConnection does not disconnect if called inside an event of a connection HOT 1
- DefaultCommandErrorHandlerAsync throws when Exception.Message.Length > 2000 chars
- Nullable slash command arguments throw DSharpPlus.Commands.Exceptions.ArgumentParseException HOT 2
- Nullable Enum cannot be used as SlashCommand argument HOT 1
- `InteractionConverterContext.Interaction.Data.Resolved.Roles` can be null when mentioning a `DiscordMember` or `DiscordUser`, causing NRE.
- Command parameters are getting wrong interpreted
- Rest client ratelimit inconsistencies HOT 1
- VoiceNext VoiceReceive
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dsharpplus.