
- Autopurge discord.net how to#
- Autopurge discord.net install#
- Autopurge discord.net Patch#
- Autopurge discord.net upgrade#
- Autopurge discord.net code#
When a binary breaking change is made, the change will be noted in the release notes. Such as addons, may also need to be recompiled and republished on the newer version. We will occasionally need to break the ABI, by introducing parameters to a method to match changes upstream with Discord.Īs such, a minor version increment may require you to recompile your code, and dependencies, While we will never break the API (outside of interface changes) on minor builds, To compromise, we have decided that interfaces should be treated as consumable only,Īnd your applications should typically not be implementing interfaces.įor applications where interfaces are implemented, such as in test mocks, we apologize for this inconsistency with SemVer. Major version bumps generally indicate some major change to the library,Īnd as such we are hesitant to bump the major version for every minor addition to the library. In other words, we permit a limited set of breaking changes on a minor version bump.ĭue to the nature of the Discord API, we will oftentimes need to add a property to an entity to support the latest API changes.ĭiscord.Net provides interfaces as a method of consuming entities and as such, introducing a new field to an entity is technically a breaking change. However, Discord.Net does not guarantee forward-compatibility on minor additions. Minor componentĪn increment of the MINOR component indicates that some addition was made to the library,Īnd this addition is not backwards-compatible with prior versions. These changes will not affect the public-facing API in any way, and are always guaranteed to be forward- and backwards-compatible with your codebase, any pre-compiled dependencies of your codebase.
Autopurge discord.net Patch#
Patch componentĪn increment of the PATCH component always indicates that an internal-only change was made, generally a bugfix.

Packages are published in version format. This library generally abides by Semantic Versioning. This framework supports most of the windows-only features introduced by fx, and resolves startup errors from the TLS protocol mismatch.
Autopurge discord.net upgrade#
NET Framework, it is suggested to upgrade your project to net6-windows. NET Framework does not support this protocol by default. NET Framework.ĭiscord supports only TLS1.2+ on all their websites including the API since.
Autopurge discord.net install#
NET Core 2.1 or above for your project if you wish to run your bot on legacy platforms Īlternatively, you may choose to install theĭ4Net package. This issue has been fixed since the release of. NET Core 1.1 does not support WebSockets on Win7 and earlier. 🛑 Known Issues WebSockets (Win7 and earlier) Nightly builds are available through our MyGet feed ( ). Implements only entities and barebones functionality. The individual components may also be installed from NuGet: Our stable builds available from NuGet through the Discord.Net metapackage: NET API Wrapper for the Discord client ( ). It is also 6 in the morning as I'm writing this, so it may be that is an unofficial. Maybe I'm missing something very easily? Maybe I'm just overlooking something stupid? I am legit lost. What I want it do is that I can tell the bot to remove x amount of messages in the server regardless by its amount, not that if I want to remove 7 that it removes 10.
Autopurge discord.net code#
What it used to do is delete x amount of messages that I told it to delete in the code so for example if I wanted to remove 7 messages in the server it would delete 10. Now, I'll be completely honest and say that the the method I'm using now (the one that isn't working) is off of an explanation on Gist. This worked fine, but as I said wasn't really efficient. MessagesToDelete = await e.Channel.DownloadMessages(100) The code for that, is: RegisterPurgeCommand() What I previously had was a !purge command that deleted the previous 10 messages, but if I wanted to do 7 for example, it would still do 10.

For example, what my goal is that in Discord I will do something along the lines of !purge 10 and the last 10 messages are deleted. What I initially had was a purge command that deleted messages by x amount in the code, not by the amount I want. You can view the code here in screenshot format if you prefer Var messagesToDelete = await e.Channel.DownloadMessages(convert.ToInt32(e.GetArg("purgeAmount"))) Īwait e.Channel.DeleteMessages(messagesToDelete) Īwait e.Channel.SendMessage(e.GetArg("purgeAmount") + "Messages Deleted.") What I currently have created is this: RegisterPurgeCommand()
Autopurge discord.net how to#
I know some basic code and I've written a simple bot in C#, but for the life of me I cannot figure out how to make a purge command. I'm not much of a coder or anything I'm just doing this for fun!Ī server I am in with some friends needed a bot, there's of course a ton of bots available but I thought I'd go ahead and try my luck at making my own.
