Discord API library for Node and Deno
APACHE-2.0 License
Bot releases are visible (Hide)
Published by Skillz4Killz about 4 years ago
src/
in its paths.Published by Skillz4Killz about 4 years ago
Changed:
src
folder to improve support for deno extension as it now has enabled option merged in its latest version. So it can fmt/lint specific folders and no longer have issues fmt or linting docs folder.kick(guild: Guild, memberID: string, reason?: string)
now is kick(guildID: string, memberID.......)
closes #61Added:
rawGateway
event handler is available to listen to Gateway events like InvalidSession or Reconnect.raw
even will be those that is a discord event your bot would listen to.debug
logs added for you to be able to see more things of what is happening internally.isReady
property to the cache object to alert when the bot is FULLY ready.guildLoaded(guild)
is the new event handler for every single guild ur bot is on on bootup. GuildCreate is only for guilds that are added after ur bot is online.Fixed:
Reconnect
handling implemented.Published by Skillz4Killz about 4 years ago
Fixed
Added
deleteChannel()
deletes a channel of your choosing.Changed
std
to 0.61.0 as Deno 1.2 was a breaking(YAY SEMVER!) change and requires the latest std.Published by Skillz4Killz over 4 years ago
Published by Skillz4Killz over 4 years ago
png
instead of jpg
Published by Skillz4Killz over 4 years ago
Published by Skillz4Killz over 4 years ago
self_video
prop on voiceembed
=> widget
. Discord has deprecated the old embed props on guild.roles
prop on prune methods. This will let you prune members with certain role ids. BREAKING
delete-message-days
to delete_message_days
. This will now use days
to not be a breaking change in the future. BREAKING
emojiURL(id, animated)
new helper function available for getting the emoji url from discord cdnchangeAPIVersion(number)
to allow dynamically changing API versions on the fly without needing to restart your bot.Published by Skillz4Killz over 4 years ago
Bumps the API version internally to v7 to get more detailed and useful errors, since Discord officially endorsed the usage of v7 now.
Fixed a bug in Channel Permission handling. Critical bug fix!
Fixed a bug that prevented creating roles.
Added some more details to console logs when a CLIENT_REQUEST_ERROR is thrown. This will help you better debug where the issue comes from.
Published by Skillz4Killz over 4 years ago
Added
Fixed:
Published by Skillz4Killz over 4 years ago
This version was heavily focused on improving cache/memory needs to be able to allow bigger bots using this library.
Removed:
Added
logger.error()
instead of logRed()
Published by Skillz4Killz over 4 years ago
Published by Skillz4Killz over 4 years ago
Added:
messageUpdate
event for when messages are edited.Fixed:
Published by Skillz4Killz over 4 years ago
createMember()
to remove 2 unnecessary parameters.memberHasPermission()
performance enhanced.raw
properties. This was eating up memory as duplicate values were being stored. Raw was used for pre-spread. The spread operator makes raw useless.Added
channel.hasPermission(id, [perms])
Check if a user or role has permission in said channel.guildID
prop on memberguild()
on member to get the guild for this member. A method, to preserve memory.message.guild()
to access the guild property.message.member()
to access the member for the message author.user.sendMessage()
can now send messages to users dm.Fixed
d
payload prop to determine whether to resume or identify again.guildUpdate
event will no longer pass a full guild as the cached guild. Instead it will be guildUpdate(guild, changes)
The changes will be an array with the following format:[
{ key: "string", oldValue: "unknown", value: "unknown"
]
Published by Skillz4Killz over 4 years ago
First Official Release Through Github Tags/Releases.