Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork315
-
Discussion hub for the upcoming V5 rewrite |
BetaWas this translation helpful?Give feedback.
All reactions
🎉 1❤️ 1
Replies: 9 comments 4 replies
-
Related task board:https://github.com/DSharpPlus/DSharpPlus/projects/5 |
BetaWas this translation helpful?Give feedback.
All reactions
-
Taken directly from Discord by @Neuheit: Hello DSharpPlus users! As you may have seen I have started to work on a prototype for the V5 version of the lib, I have a long way to go but here is what I am thinking so far The Here's a potential look at the abstraction layers: We will also be rewriting some of the extensions (namely interactivity, commandsnext, and also implementing a slash command service finally). Let me know your thoughts on all of these, nothing here is set in stone however I personally feel this is the best approach. |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Current Tasklist:
REST (RestManager)
Sharding (ShardManager)
Serialization
Entities
Extensions
|
BetaWas this translation helpful?Give feedback.
All reactions
🎉 2
-
I'm not sure how it'd be possible to send api requests without having a object of any sort. In some cases I don't need the whole channel instance the sole purpose for is to just to send a message in it. My solution is using |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
It is planned to have public rest methods (either in the DiscordClient or RestManager) take just ulongs rather than full entity types as parameters. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I don't know if anybody else has this issue but there is no abstract EventArgs to allow users to get information about the message. The list goes on and on. privateasyncTaskLog(DiscordEventArgsargs,stringmessage){if(args.User==Client.CurrentUser)return;awaitLogChannel.SendMessageAsync(message);} The only thing DiscordEventArgs has is a Handled property. |
BetaWas this translation helpful?Give feedback.
All reactions
-
This is because you are using the base DiscordEventArgs class instead of the appropriate event args class for that event. Gimme a minute and I'll send a link to one of them. |
BetaWas this translation helpful?Give feedback.
All reactions
-
https://dsharpplus.github.io/api/DSharpPlus.EventArgs.MessageCreateEventArgs.html |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I don't how specifically this would be implemented, but it would be nice to be able to return Example usage: publicsealedclassCommands:BaseCommandModule{publicoverrideasyncTaskAfterExecutionAsync<T>(CommandContextctx,Tvalue){if(valueisstringstr)awaitctx.RespondAsync(str);}// Alternative versionpublicoverrideasyncTaskAfterExecutionAsync(CommandContextctx,objectvalue){if(valueisstringstr)awaitctx.RespondAsync(str);}[Command]publicasyncTask<string>ExampleCommand(CommandContextctx){return"Success";}} |
BetaWas this translation helpful?Give feedback.
All reactions
This comment was marked as disruptive content.
This comment was marked as disruptive content.
This comment was marked as disruptive content.
This comment was marked as disruptive content.
-
Discord now released their API v10. Changes:
|
BetaWas this translation helpful?Give feedback.