v0.1.0
Additions/removals from Eris PRs
- Slash command permissions, v2 (abalabahaha/eris#1372)
- Attachment type (abalabahaha/eris#1358)
- Removed user account-related features (abalabahaha/eris#1338)
- Interaction refactor (abalabahaha/eris#1309)
- Interaction modals (abalabahaha/eris#1404)
- Usage of process warnings for deprecations (abalabahaha/eris#1276)
- Guild scheduled events (abalabahaha/eris#1275)
- Redirect following when playing songs (abalabahaha/eris#494)
- Return void on 204 (abalabahaha/eris#1021)
- Ability to use HTTP instead of HTTPS for REST (abalabahaha/eris#1193)
- Standardized parsing errors (abalabahaha/eris#1227)
- Gateway resume URL support (abalabahaha/eris#1410)
- Support message deletion in seconds when banning (abalabahaha/eris#1397)
- Auto moderation (abalabahaha/eris#1390)
- Gateway option split (abalabahaha/eris#1384)
- Consistency/QoL fixes (abalabahaha/eris#1379)
- Support for async permission checks for CommandClient (now deprecated) (abalabahaha/eris#1414)
- Switch to Discord API v10 (abalabahaha/eris#1371)
editGuildVanityremoval (#18)
Additions
- Entity select types (#4)
- Modernized file uploading (#5)
- Support for new trigger metadata (#9, #34)
Warning
Compared to other Eris forks, camel-cased trigger metadata properties are deprecated. Use snake_case instead. ACTIVE_DEVELOPERuser flag (#10, #23)- Forum channel support (#1, #14)
- Consistent casing of
Attachment#proxyURL(#11) Guild#eventsis now populated onguildCreate(#12)- Support for new message types (#22)
GIFsticker format support (#24)- Thread member pagination support (#25)
- Role subscriptions (#21)
threadIDineditWebhookMessage(#28)
Removals/deprecations
- Removed what was marked as deprecated after merging PRs from the Eris tree.
- Any undocumented features and constants were marked as deprecated.
Guild#fetchAllMembersis deprecated in favor ofGuild#fetchMembers- The
fileparameter/option in functions that take message attachments is deprecated in favor of theattachmentsoption createThreadWithoutMessage()is deprecated in favor ofcreateThread()- Creation of a
Clientby calling the default package export is deprecated - Discovery-related methods are deprecated
getInvite()options have been merged into an object – passing options as parameters is deprecatedCommandClientis deprecated – use slash commands instead- Camel-cased auto moderation trigger metadata properties are deprecated – use snake_case instead
Full list of differences from Eris tree
- Calling the package export directly is deprecated
- Deprecated
CommandClient; use a slash command framework instead - Support for gateway resume URL
- Support for following gateway events:
autoModerationActionExecution(Guild, Object)autoModerationRuleCreate(Guild, AutoModerationRule)autoModerationRuleDelete(Guild, AutoModerationRule)autoModerationRuleUpdate(Guild, AutoModerationRule | null, AutoModerationRule)guildIntegrationsUpdate(Guild)applicationCommandPermissionsUpdate(Object)guildAuditLogEntryCreate(Guild, GuildAuditLogEntry)integrationCreate(Guild, GuildIntegration)integrationUpdate(Guild, GuildIntegration)integrationDelete(Guild, Object)
- Old message components are included in
messageUpdateevent nsfwproperty was removed from old guild data inguildUpdateeventguildBanAdd/guildBanRemoveevents now emit a partial guild object when the guild is uncachedRequestHandlersupports calling the API via HTTPRequestHandlersupports using multipart field names different from the file nameRequestHandler#requestreturns undefined on empty response body- Redirects are supported when playing audio from URLs
- Support for auto-moderation
CommandInteractionsupports attachments- Support for forum channels
- Removed methods available only for user accounts and classes for objects that only user accounts could receive
Guild#eventsis auto-populated with data fromguildCreate- Properties related to discovery in
Guildhave been removed - API calls related to discovery have been deprecated
Guild#fetchAllMembershas been deprecated in favor ofGuild#fetchMembers- Added additional fields to
GuildAuditLogEntry GuildAuditLogEntry#usercan be uncached- Modal submit interactions are supported
- Aligned most of the classes and constant enums with Discord's documentation
- Deprecated properties (after initial PR merge) have been removed
- Client options related to gateway have been merged into
ClientOptions.gateway - Client options related to REST have been merged into
ClientOptions.rest Client#banGuildMemberdeleteMessageDayshas been replaced bydeleteMessageSeconds- The
fileparameter (oroptions.fileproperty) in methods that create a message has been deprecated in favor ofoptions.attachments Client#createStageInstancesupports sending stage start notificationsClient#createThreadWithoutMessagehas been deprecated in favor ofClient#createThread- Added
Client#editGuildMFALevelto change the MFA level in bot-owned guilds - Support for role connections
Client#editWebhookMessagesupports passing athreadIDto edit webhook-created messages within threadsClient#executeWebhooksupports passing athreadNameto create threads within forum channels- Support for localized guild commands
Client#getGuildAuditLognow returns additional objects returned by the APIClient#getInvitesupports passing a guild scheduled event ID to include with the invite (if public)Client#getInviteparameters have been merged into a singleoptionsobject- Support for fetching a singular thread member (
Client#getThreadMember) - Support for including guild member data along with thread member data