Skip to content

Releases: krisppurg/dimscord

Dimscord (v1.8.0)

28 Sep 21:07
f6e578f

Choose a tag to compare

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 mfIsComponentsV2 into your flags param 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:jsonyDumps whilst -d:dimscordDebug is 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 like s.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 like discord.api.getGuild, discord.getGuildChannel, ... should be a failsafe if it doesnt exist in cache, unless it's discord.api.getUser
  • changes with set[PermissionFlags] in Roles,
  • fix weird gateway connection issues when s.resumeGatewayUrl is empty string
  • components in interaction response messages should work perfectly flawless now
  • Almost every enum like MessageType should 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)

24 Aug 18:58
c012fa6

Choose a tag to compare

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
  • waitFor and waitForRaw events along with (getGuildMember, waitForReply, etc) thanks to ire4ever1190
  • Added {.mainClient.} pragma for helper functions like channel.send, i.reply, etc works for nim v2.0.0 only thanks to nayr7
  • Fix createGuildRole along 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

18 Aug 17:17

Choose a tag to compare

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.

Changes: v1.3.0...master

Dimscord v1.3.0

26 Aug 20:45

Choose a tag to compare

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:discordv9 and -d:dimscordDebugNoSubscriptionLogs are 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

26 Dec 21:03
53f1f39

Choose a tag to compare

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 zippy for 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

02 Nov 18:10
ee28585

Choose a tag to compare

v1.2.1

Update dimscord.nimble

Dimscord v1.2.0

01 Nov 15:34

Choose a tag to compare

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 as enums, renamed from PermEnum to PermissionFlags any bitwise enum has "Flags" at the ending, except for GatewayIntent.
  • Removed reaction in messageReactionAdd, since it was not necessary use m.reactions[$emoji] instead.
  • Renamed every "GuildEmbed" to "GuildWidget" since discord decided to change it.
  • Every allow or deny is a set of PermissionFlags
  • If you are using v8, use Presence.activities[0] instead of Presence.activity.
  • Renamed from genInviteLink to createBotInvite since 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.
  • startSession will contain errors from now, if the client cannot reconnect for example the 4013 - Invalid Intent(s) error or autoreconnect is off.
  • Timeouts for rest and gateway.
  • Voice gateway was added, voice was taking more long and was causing v1.2.0 to 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

11 Sep 14:18
96e313c

Choose a tag to compare

Read v1.0.6 this is fixed patched version. This release had a bug with the code.

Dimscord v1.0.6

10 Sep 18:05

Choose a tag to compare

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.dll error 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 id and name Optional, because name is nullable in MESSAGE_REACTION_REMOVE events.

For change comparisons: Click here (to master) or here (to v1.0.6)

Dimscord v1.0.1

07 Aug 18:24

Choose a tag to compare

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.