Releases: krisppurg/dimscord
Dimscord (v1.8.0)
After thousands of years, a new release of dimscord has emerged
Dimscord (v1.8.0):
- New rest api endpoints and stuff e.g. polls
- Fully complete components v2 support \o/ -> add the
mfIsComponentsV2into yourflagsparam when sending/editing messages/responses - Fixed up the stupid fatal jsony error crashes, they should be rare and contain the useful information for debugging. adding
-d:jsonyDumpswhilst-d:dimscordDebugis enabled will show you what's happening. - Nim v1.2.0+ -> Nim v2.0.6+ required now
- Fix weird message update and guild members update shenanigans
- Deprecating the naming of the buttons/message component types
- Gateway intents are mandatory, for any other advanced events it'll force you to enable the event otherwise you're gonna have a silent response when the event is called.
- Cool stuff:
message.guild,message.gchannel(-> guildchannel)
it's a shorthand for saying something likes.cache.guildChannels[chan_id], it also accept strings as well. I've seen users not using the intended cache, which I highly encourage to do so. REST endpoints likediscord.api.getGuild,discord.getGuildChannel, ... should be a failsafe if it doesnt exist in cache, unless it'sdiscord.api.getUser - changes with
set[PermissionFlags]inRoles, - fix weird gateway connection issues when
s.resumeGatewayUrlis empty string componentsin interaction response messages should work perfectly flawless now- Almost every enum like
MessageTypeshould contain a unknown to prevent any potential crashes if type specified not in range - Refined some of the docs
Full Changelog: v1.6.0...v1.8.0
Once again, I'd like to thank you all for your patience and helping out.
Dimscord (v1.6.0)
Dimscord (v1.6.0)
the drop you all have been waiting for as the hiatus continues... with the yearly releases.
Here is completed list of things that were changed/added:
- Fix voice issue with pause/play, and also fix issue where song gets cut at the near end of the song (via ytdl).
- Some new endpoints
waitForandwaitForRawevents along with (getGuildMember,waitForReply, etc) thanks to ire4ever1190- Added
{.mainClient.}pragma for helper functions likechannel.send,i.reply, etc works for nim v2.0.0 only thanks to nayr7 - Fix
createGuildRolealong with other restapi procs like editGuildRolePosition(s) - Automatically define ssl so you you dont have to. (only if u import dimscord first)
- Forum and media channel support
- Added etf support via
-d:discordEtf, though it might be slower compared to json encoding. - Slightly update discord api errors with a newer format and have a custom exception with some extra fields.
Here's a commit history from all the changes if you're interested.
v1.4.0...master
Just a little quick note if you're interested, I'm thinking of planning to add new cool features like lavalink/lavaplayer and maybe some changes with the library (nothing too breaking of course.) next year in the future or so, looking forward to the next release.
Dimscord v1.4.0
After a long wait and while,
Dimscord v1.4.0
- Default api version is v10, so v10 support.
- Dropped support for v6, v7 and v8 since them 3 are deprecated
- Please note that if you don't specify intents the default is
{giGuilds, giGuildMessages, giDirectMessages, giMessageContent}
- Ability to send/edit attachments in messages and responses
- Updates to application commands and interactions e.g. modals, components, etc.
- Improve interaction responses, making them less verbose, you can look at examples/user_commands.nim
- Also, about editing interaction responses it was editWebhookMessage, but since some people had issues with finding it, I thought I'd make it more findable, same applies for followups.
- Message content intent
- New and some updated events e.g. auto moderation, guild scheduled events
Last but not least........
- Voice implementation and with an example, you can play audio in a voice channel, huge thanks to @ire4ever1190!
- To enable voice you need to define
-d:dimscordVoice.
- To enable voice you need to define
Changes: v1.3.0...master
Dimscord v1.3.0
I am very proud to announce Dimscord v1.3.0 after a long while.
Here is completed list of things that were added: #50
getGuildChannel->getChannel- New Slash Command endpoints
- Message Components
- Stage Instances
- Stickers
- Threads
- Of course updated fields.
- Fixed global ratelimiting (dont worry ratelimiting is all good)
embed->embeds-d:discordv9and-d:dimscordDebugNoSubscriptionLogsare new definable options- Slash command permissions
- Context menus
After all of these features, I would like to thank @ire4ever1190 for helping out and implementing those endpoints.
Thanks.
Dimscord v1.2.5
Dimscord v1.2.5
This release contains updates to the library, such as patches to v1.2.0 of course there are now:
- Reply support to
sendMessage - Fix status update not working
- Split files (although this change is internal so that's nothing to worry about updating your code)
- Addition to Slash commands., you can have a look on the discord docs for more info, as I'd recommend doing so.
- New event macro or
{.event(discord.}, this is a useful shortcut. - Using
zippyfor zlib compression - Remove v1.4.0 deprecation warning messages.
- Docs update, of course.
- Fixed a bug when you define
discordv8, you get a permission cast flag error (str to set[PermissionFlags)
Besides the change, we've got other news as well:
- Dimscord now has a seperate command handler, made by ire4ever1190 also known as hobbledehoy!
- We are also now on community resources!
Command Handler: https://github.com/ire4ever1190/dimscmd
Out of date? Have a look at https://github.com/krisppurg/dimscord/releases
Dimscord v1.2.0 FIXED patch
v1.2.1 Update dimscord.nimble
Dimscord v1.2.0
This release contains support for discord api v8 changes and some improvements with the library I highly recommend you should read the v8 changes, if you are using v8.
Discord API v8 changes: https://discord.com/developers/docs/change-log#api-and-gateway-v8
Use -d:discordv8 for v8.
This is mildly a breaking change, but this release also fixes to user not being in emoji in GUILD_CREATE which is a very common bug in users installing the last vesion aka v1.0.7.
Here is the changes being made to Dimscord:
- Make types like
MessageType,AuditLogEntryType,ActivityType, etc asenums, renamed fromPermEnumtoPermissionFlagsany bitwise enum has "Flags" at the ending, except for GatewayIntent. - Removed
reactionin messageReactionAdd, since it was not necessary usem.reactions[$emoji]instead. - Renamed every "GuildEmbed" to "GuildWidget" since discord decided to change it.
- Every
allowordenyis asetofPermissionFlags - If you are using v8, use Presence.activities[0] instead of Presence.activity.
- Renamed from
genInviteLinktocreateBotInvitesince it was a temporary name and I forgot to change. - Fixed zombied connection bug (I think?), since it had a strange issue and behaviour of reconnecting causing the final result of invalidating a session.
startSessionwill contain errors from now, if the client cannot reconnect for example the4013 - Invalid Intent(s)error orautoreconnectis off.- Timeouts for rest and gateway.
- Voice gateway was added, voice was taking more long and was causing
v1.2.0to delay even more, sending audio will be added later.
Enjoy, let me know if there are any issues you can contact me on the discord api channel linked in the readme above.
Dimscord v1.0.6 (PATCHED) v1.0.7
Read v1.0.6 this is fixed patched version. This release had a bug with the code.
Dimscord v1.0.6
This release contains bug fixes and some updates with the library.
Here's what this release contains:
Notable changes:
- Zlib compression is definable due to the
could not load zlib1.dllerror on windows. - There is an update with request guild members which fixes where you cant get a member from id.
- String values in PermEnum (#18)
- Make
idandnameOptional, becausenameis nullable inMESSAGE_REACTION_REMOVEevents.
For change comparisons: Click here (to master) or here (to v1.0.6)
Dimscord v1.0.1
This is a slightly minor release.
- Fixed a bug, when getGateway hangs up after first attempt, while the library is reconnecting when a network error occured. This commit can be found here.
- Added stripMentions procedure.
- Changed the debugging layout for gateway.