A NodeJS library for interfacing with Discord.

Overview

Oceanic NPM version

A NodeJS Library for Discord.


Installation

NodeJS 16.16.0 or higher is required.

See Development Builds if you wish to install in-dev versions.

npm i oceanic.js

See the examples folder on GitHub for some examples, and visit this site for documentation.

Development Builds

npm i oceanic.js@dev

The documentation under dev is always for the latest commit. If something isn't working that's in the documentation, you're likely looking at the wrong documentation.


Optional Dependencies

  • pako - Compression (gateway)
  • zlib-sync - Compression (gateway, faster than pako)
  • erlpack - Encoding (gateway, alternative to JSON)

Links

You might also like...

Cyrus is a Discord Bot with focus on Fun, Moderation, information and much more commands! Made it with Discord.js

Cyrus is a Discord Bot with focus on Fun, Moderation, information and much more commands! Made it with Discord.js

Cyrus Cyrus is a Discord Bot with focus on Fun, Moderation, information and much more commands! Made it with Discord.js Invite : Click here Vote : Top

Dec 3, 2022

OptiBOT - My discord.js V13 discord bot.

OptiBOT Just a discord.js v13 bot for my discord server. if you plan to use this bot for your server, dont. This i made this bot just for learning js

Jan 3, 2022

Discord.JTS - Slash Commands for Discord.JS 13 using Typescript

Installation Requirements and Recommendations: Node.js Git Visual Studo Code An empty test Discord server Step 0: Login into Discord in the Browser Go

Jan 13, 2022

A discord bot using @discord.js and mongoose. Used for music, moderation, and entertainment.

hazel A discord bot using @discord.js and mongoose. Used for music, moderation, and entertainment. Features Music ― supporting YouTube, Spotify and So

Dec 31, 2022

For Help/Questions Join in discord: https://discord.gg/ErynDxTV5Y

C-GEN-Discord-Alt-Accounts-Generator An Open Source Account Generator Bot! How it works: Put your Discord Bot Token in Config, Make sure you have Node

May 8, 2022

This bot is a cool Discord bot made in discord.js using Node.JS

This bot is a cool Discord bot made in discord.js using Node.JS

Anti-Crosspost Discord Bot This bot is a cool Discord bot made in discord.js using Node.JS. It detects when a user cross-posts a message in multiple c

May 31, 2022

Denky is a multipurpose Discord bot, build with Node.js, TypeScript and discord.js.

🤖 Denky Bot Denky is a brazilian Discord bot, build with Node.js, TypeScript and discord.js. ⚙️ How to Create a Discord application. Guide Install No

Apr 6, 2022

Co-Pilot is a discord Bot designed to be the all-in-one, open-source Discord bot that handles all your server needs.

Co-Pilot is a discord Bot designed to be the all-in-one, open-source Discord bot that handles all your server needs.

Welcome to Co-Pilot Bot repo! 👋 🤖 Co-Pilot (All-in-one Discord Bot) Co-Pilot is a discord Bot designed to be the all-in-one, open-source Discord bot

Nov 11, 2022

Sample discord bot using clashofclans.js and discord.js

Clash of Clans sample discord bot using NodeJs Introduction This sample bot project aims to help you get started with interacting Clash of Clans API u

Dec 16, 2022
Comments
  • fix: fix fetching max concurrency automatically

    fix: fix fetching max concurrency automatically

    Figured this out wondering why shards were slow with concurrency, seems like data.maxConcurrency is always undefined so dunno whether to set that from sessionStartLimit in the function or just remove it outright.

    bug farming hacktoberfest-accepted 
    opened by Snazzah 7
  • Fix avatar URLs for guild/member avatars

    Fix avatar URLs for guild/member avatars

    As of right now, when trying to use avatarURL() on a Member object with a non-null avatar, it returns a malformed URL like this:

    https://cdn.discordapp.coma_ff23ddf64e0930ac1ac67f7ab6eeb84e.png?size=4096
    

    Note the lack of a slash or path between the .com and the a_. This should fix it to return the proper guild avatar URL.

    opened by TheEssem 0
  • Fix #channel on many structures not properly getting cached channels

    Fix #channel on many structures not properly getting cached channels

    In some cases, for example when leaving/joining a voice channel, VoiceState#channel always returns null because _cachedChannel never gets defined. This should (hopefully) alleviate that.

    opened by TheEssem 2
Releases(v1.4.1)
  • v1.4.1(Jan 2, 2023)

    • Fix Guild Avatar URLs (3578b207e87dbe908ed21ce299a309629f91b854, #33)
    • Add RAID_ALERTS_ENABLED feature & associated helpers (03b4b46ece81bd3be4f18e22311a90e2b45fb6c3)
    • Fix file magic checking for JFIF/EXIF JPEG files (433bb21a3e980e94c7c7a0056092d5079241d611, 371aaf49777362bc501ee4af01de4edffe6129d1, 416e9ce0799ee031cbc499e5e0514bc0320f24ed)
    • Refactor internal type imports (40d047a0882f4d47200f554e3201f1e038c322b6)
    • Remove eslint plugin from developers with a stick up their ass, causing 3-6 security vulnerabilities to show up (b5d0956f0dcb3c8e10c9741834df5bc24bc05aa4)
    • add a generic to tell the TypedEmitter what events to expect (0d6fa25ea38fcb516a71257c85cdaef25f6ac7ca, #34)
    Source code(tar.gz)
    Source code(zip)
  • v1.4.0(Dec 22, 2022)

    • Renamed HubType to HubTypes (82e4ff046e516e9a8c973c6b109715f951fe2944)
    • Fix some handling of allowedMentions, which broke editing messages by other authors (a8b896279da9aa573ad40d54efc89fd5539a221f)
    • Properly support stage instances (3a5e223cee415225ffb71618079d62cf5314cf9e)
    • Rename generic id parameters (docs, 47e511c80b43850367530ffb0ec3faa263616075)
    • Refactor Message#application (a558489b6221a4c1d8c2cfcc9e9c2e271dd0bb2e)
      • Will never be null (undefined or present)
      • If the application is the current client, update Client#application instead of using provided info exclusively
      • Minor wording changes
    • Add option for X-Super-Properties header (092cc6fb8244e350920f38240547dba76b7d4f90)
    • Add support for avatar decorations (d7c372483c84237a0874055ce3499b597c2fb38e)
    • Add More Error Codes
      • MAXIMUM_PREMIUM_EMOJIS (47f17189d67143149a2655d2e275217b653d1a7c)
      • CANNOT_MIX_SUBSCRIPTION_AND_NON_SUBSCRIPTION_ROLES (47f17189d67143149a2655d2e275217b653d1a7c)
      • CANNOT_CONVERT_BETWEEN_PREMIUM_AND_NORMAL_EMOJI (47f17189d67143149a2655d2e275217b653d1a7c)
      • MAXIMUM_GUILD_WEBHOOKS (781866f753a2f06b1fa0abfbaf5a6652257c3a47)
    • Add support for premium subscriber role tags (47f17189d67143149a2655d2e275217b653d1a7c)
    • Add support for role connections (56f15f42147c0117c2c4c06523ea71f1c9d08a1c)
    • Add ROLE_SUBSCRIPTIONS_PURCHASE InviteTargetType (cc8ede8629c81fec3fee19c7c40f55043d40a121)
    • Add join and mention raid protections features (781866f753a2f06b1fa0abfbaf5a6652257c3a47)
    • Add More Guild Features
      • RAID_ALERTS_ENABLED (781866f753a2f06b1fa0abfbaf5a6652257c3a47)
      • CREATOR_STORE_PAGE (72a0a1b34c67ab4406d57bf35e4593a71c42b575)

    Breaking

    • Removed HubType (use HubTypes) (82e4ff046e516e9a8c973c6b109715f951fe2944, 560c1909f90de4c061911f254b2e8bd99d1cb69e)
    Source code(tar.gz)
    Source code(zip)
  • v1.3.2(Dec 4, 2022)

    • Added Features
      • APPLICATION_COMMAND_PERMISSIONS_V2 (ade4cc1478d787f6d4e81f669be426dc7545bbc2)
      • CREATOR_MONETIZABLE_PROVISIONAL (1070b75652680979e74a0b228bfb4a04571cb2ee)
    • Add helpers to Guild for toggling COMMUNITY, DISCOVERABLE, and INVITES_DISABLED (640d15c1c089d41d1ad4f10650a8d91816a43e9b)
    • Make LocaleMap type partial (ec36bb98aa6c98244b1a29dd89475198da0def25)
    • Move constructURL from OAuth to OAuthHelper (OAuth#constructURL will be removed in 1.5.0) (66bdc8945c83628b9dc9190d26a4add083797c77)
    • Add BUG_HUNTER_LEVEL_1 user flag (corrected from BUGHUNTER_LEVEL_1, the old one will be removed in 1.5.0) (fa3b76e50e9087467a861485609f61eabc4802aa)
    • Remove outdated notice from InteractionOptionsWrapper#getSubCommand (1ad95548ea60831f02584753224bdc07c6aab238)
    • Make singular component transformation methods (c36aa2500f23a42a5b603725039d28c64ede60a7)
    • camelCase presences (980ea5818c836b25cc77f8275841d42bb3bddaa6)
    • make some internal property accessing "safer" (0b2a96ff3673ea968e8f278763f4cbc514b7c10c)
    • defaultForumLayout (310115de0b2101f625742ad12bb1b694c40e6884)
    • Add more message types (377481c8812b650dd6e33020c02258a52dca4512)
    • Add guild_subscription integration type (93d554dfb4fe9bc9a54ccd7d48d324d4574e981a)
    • Added Default Message Notification Levels
      • NO_MESSAGES (478831723e3f971c4febe73248e751d73aec20c1)
      • NULL (478831723e3f971c4febe73248e751d73aec20c1)
    • Added Channel Flags
      • SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATIONS (478831723e3f971c4febe73248e751d73aec20c1)
      • SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES (478831723e3f971c4febe73248e751d73aec20c1)
    • Added Message Flags
      • SHOULD_SHOW_LINK_NOT_DISCORD_WARNING (478831723e3f971c4febe73248e751d73aec20c1)
    • Added Audit Log Types
      • CREATOR_MONETIZATION_REQUEST_CREATED
      • CREATOR_MONETIZATION_TERMS_ACCEPTED (478831723e3f971c4febe73248e751d73aec20c1)
      • ROLE_PROMPT_CREATE (478831723e3f971c4febe73248e751d73aec20c1)
      • ROLE_PROMPT_DELETE (478831723e3f971c4febe73248e751d73aec20c1)
      • ROLE_PROMPT_UPDATE (478831723e3f971c4febe73248e751d73aec20c1)
      • GUILD_HOME_FEATURE_ITEM (478831723e3f971c4febe73248e751d73aec20c1)
      • GUILD_HOME_REMOVE_ITEM (478831723e3f971c4febe73248e751d73aec20c1)
    • Add HubTypes (478831723e3f971c4febe73248e751d73aec20c1)
    • Convert some constants to bit shifting (478831723e3f971c4febe73248e751d73aec20c1)
    • Fix Permission Overwrite updates not being handled (b2b4863a657bae3a39a7c63cd6d59e18d12326ca)
    Source code(tar.gz)
    Source code(zip)
  • v1.3.1(Nov 16, 2022)

    • Add role-connections.write OAuth scope (b4855864d9d45465ce5d1f345731efa0c91ae689)
    • disable skipLibCheck (internal, e55fd6c3db1a6adee3f0b221530ee56fa2eaf181)
    • fix GuildComponent* types (e55fd6c3db1a6adee3f0b221530ee56fa2eaf181)
    • add disableMemberLimitScaling option (24cce3d9160c9fa3062b8bb70501837d6e2b9446)
    • Add GUILD_FEED_REMOVED, ACTIVE_CHANNELS_REMOVED & IS_SPAM ChannelFlags (5fda517e31edc73b9550b035fb76b1631f9e871c)
    • Add tiktok connection (7a4aa9d380ee78318b383800d900b7c2fd9f23d2)
    • Add error code RESOURCE_RATE_LIMITED (69c11427a852adbed1875bf436739c9e39b604b6)
    • Add ACTIVE_DEVELOPER user flag (276a99d55397b9182411a4317a26f4d9de7ebe18)
    • Add ACTIVE application flag (276a99d55397b9182411a4317a26f4d9de7ebe18)
    • Add nsfw property on application commands (276a99d55397b9182411a4317a26f4d9de7ebe18, b00db50796587a98483048d45a48cf9a15c7cd7b)
    • Add error code INVALID_REQUEST_ORIGIN (b07656bb7aa9924bbdb3d94cb7a5c84f3807a3bb)
    • Add support for search parameters on OAuth#getCurrentGuilds (b07656bb7aa9924bbdb3d94cb7a5c84f3807a3bb, e37ff4d85c886100da5b853f3e79beecf91595ee, 73a020413e55c251e3bbf94c1d8a8fcc5ec93b6f)
    • Convert internal if statements for if statements to explicit undefined checks (70e2d3d23864db78b615b4e592ccd1c9832f0eef)
    • Fix Guild#leave using incorrect method (d4bcc98bdc360d39e4014eb1ea4e8fbdc8ae2677)
    • Throw unhandled errors (5f1d760a62fadf94e7ba87f98f45140e7e63a8d6)
    • Add Users#createDM alias (8a055bd1aa1b38ac9f2e94721f1a4551324fdf36)
    • Clarify what "create" means for Channels#createDM (2f9ec20d3274159943479b0137fd65bfc8454fd1)
    • Add Keyword to TriggerMetadata allow list note (43b54b5e331bd5ab7b0642140cf0ea44886dcb60)
    • Strictly type locales (a6484fcabab389e2fa1497ce201e1e420976bb8b)
    • Convert ApplicationFlags to bitshifting (62a76b569e9ca52688567022f87c28e793f3ad9b)
    • Update dependencies (68a8948087a5a7343a6e2dc9433fec7f24750738)
    Source code(tar.gz)
    Source code(zip)
  • v1.3.0(Oct 28, 2022)

    • Remove comments about ephemeral messages not being deletable (2b2ca6518ba338b285ee59db527e9ccf785d272e)
    • ComponentInteraction helpers (isButtonComponentInteraction() & isSelectMenuComponentInteraction()) (4adb42d931ec86ac1304cc219243de6963246801, a60dc5c37eeac86756a1d0bdc7f5650c3f6f7f0e)
    • Fix latency checks (0ab6f4e3acdcaf2476278021e86954042987a5db, 1cfb1a652a4333fc7f08549e390ec04b6f5ed6e4, 7ea9462ddb1aef6d2337442695250794cd6bbaa9)
    • Add PremiumTypes.NITRO_BASIC (fac0abb0c788fcc6c03fc9a97f705b8159065a29)
    • Add DEVELOPER_SUPPORT_SERVER feature (fac0abb0c788fcc6c03fc9a97f705b8159065a29)
    • Add To JSONErrorCodes
      • SERVICE_RESOURCE_RATE_LIMITED (fac0abb0c788fcc6c03fc9a97f705b8159065a29)
      • INVALID_ACTIVITY_ACTION (fac0abb0c788fcc6c03fc9a97f705b8159065a29)
      • INELIGIBLE_FOR_SUBSCRIPTION (18f2465d5d904ff54e89d2def681ec9b390c72ce)
    • Add limit note to EditGuildChannelOptions#appliedTags & availableTags (fac0abb0c788fcc6c03fc9a97f705b8159065a29)
    • Fix Auto Max Concurrency (#26) (7e6b60c53e9f5fe690912c48d22f2e4815b6c9c2)
    • Emit resume after shard resumed (#27) (e5abdd909f276c6b278b90292c58265bf9eed4a1)
    • Emit shardPreReady on preReady (#28) (6cfd38efbff846c20c018475707af00c1f3df24b)
    • Set session ID on ready (#29) (62016390635e373b648c6760011e80a5b537a236)
    • Set lastMessageID & lastMessage to null when the existing message is deleted (bd5db1f59bbf81fc502d642f02b70ef71a496310)

    Breaking

    • New OAuthGuild structure (44feb803bfb9ea486ace1520fdf3283bd849002f, db1cb58ffd252cbcaec6836fdd29c575f1ac56f3)
    • Remove OAuth only things from guild (3201247f2ccf2611a5ee79f745cb427f43d90aaa, 289a14291f3d2b9487343538bcf3dc7cd33b78c3)
    • Remove ComponentTypes.SELECT_MENU (use STRING_SELECT instead) (5aaf4dde414e52906bf836743eb27405a96e5450)
    Source code(tar.gz)
    Source code(zip)
  • v1.2.1(Oct 20, 2022)

  • v1.2.0(Oct 18, 2022)

    • camelCase Role#tags
    • general wording/spelling fixes and import optimizations (#24)
    • New Select Menu Types (#23)
    • Correct CANNOT_MODIFY_SYSTEM_WEBHOOOK -> CANNOT_MODIFY_SYSTEM_WEBHOOK (no deprecation, incorrect name was immediately removed)
    • Removed SortOrderModes, replaced by SortOrderTypes
    • Removed JsonErrorCodes, replaced by JSONErrorCodes

    Note: The new select menus introduce a breaking change within ComponentInteraction, data.values is now a wrapper around the receivable values, much like CommandInteraction's data.options.

    Source code(tar.gz)
    Source code(zip)
  • v1.1.2(Oct 8, 2022)

    • Deprecate SortOrderModes in favor of SortOrderTypes (SortOrderModes will be removed in 1.2.0)
    • Deprecate JsonErrorCodes in favor of JSONErrorCodes (JsonErrorCodes will be removed in 1.2.0)
    • Remove unusable methods from group channels
    • Make OAuth#constructURL static, and export OAuth class
    • Correct JSONErrorCodes.PAYMENT_SOURCE_REQUIRED
    • Add JSONErrorCodes.CANNOT_MODIFY_SYSTEM_WEBHOOOK
    • Add client disconnect method
    • README overhaul (#22)
    • Add an OAuthHelper, accessible via client.rest.oauth.getHelper("Bearer (...)")
    • Fix handling deleted private channels, because Discord:tm:
    Source code(tar.gz)
    Source code(zip)
  • v1.1.1(Sep 27, 2022)

    • Add Member#displayName
    • Add getCompleteChannel function to InteractionOptionsWrapper
    • Fix an export error in our esm file
    • Add the list of JSON Error Codes as a constant
    • Channels#getVoiceRegions moved to Miscellaneous#getVoiceRegions
    • Added support for sticker related endpoints
    • Convert Guild#stickers into a parsed variant
    • Make several uncached objects better (adding channel/ID & guild/ID properties, etc)
    • Add VoiceChannel#userLimit
    • Add ForumChannel to channelUpdate event
    • Make defaultSortOrder nullable
    • Fix withCounts typing on Guilds#get (#19)
    • Add guild to guildRoleDelete event
    • Convert JSONGuild's publicUpdatesChannel & widgetChannel into an ID only variant
    • Make JSONGuild#widgetChannelID not optional
    • Convert emojis into a parsed variant
    • Convert Integration#roleID from optional to nullable
    • Refactor inviteCreate & inviteDelete events
    • Convert JSONStageInstance#scheduledEvent into scheduledEventID
    • Add privacyLevel to JSONStageInstance
    • Fix threadUpdate event nullability
    • Fix threadMemberUpdate event description (this event is only associated with the client)
    • Add guild in uncached threadMemberUpdate & threadMembersUpdate
    • Proper uncached thread members (the uncached thread member's id property is now the thread id, the user id is userID. This matches the behavior of regular thread members)
    • Add getWebhooks method to AnnouncementChannel, ForumChannel, TextChannel, VoiceChannel & Guild
    • Update Dependencies
    • Exclude more files from npm
    Source code(tar.gz)
    Source code(zip)
  • v1.1.0(Sep 19, 2022)

    • Properly set guild for roles received during guild creation
    • Fix Webhooks#execute* relying on wait option for returning a message
    • Add Connection#twoWayLink
    • Remove samsunggalaxy connection
    • Add paypal, riotgames & ebay connections
    • Sort features, add some that were missed and remove some that don't exist anymore
      • Add: INVITES_DISABLED
      • Add: EXPOSED_TO_ACTIVITIES_WTP_EXPERIMENT
      • Add: HAD_EARLY_ACTIVITIES_ACCESS
      • Add: MEMBER_PROFILES
      • Add: INCREASED_THREAD_LIMIT
      • Add: BOT_DEVELOPER_EARLY_ACCESS
      • Add: INTERNAL_EMPLOYEE_ONLY
      • Remove: COMMERCE
      • Remove duplicate THREADS_ENABLED featue
    • Add AuditLog#applicationCommands
    • Add Integration#scopes
    • Remove AutoModerationTriggerTypes.HARMFUL_LINK (no longer exists)
    • Fix Guilds#editMFALevel using PATCH instead of POST
    • Guilds#editMFALevel now accepts a reason
    • Accept an id in bulkEditGuildCommands
    • Add missing edit properties for Forum Threads and fix other properties not being set
    • Add auto moderation rule name & trigger type to audit logs
    • various bugfixes for methods accepting after & before
    • Update Channel#lastMessageID
    • Edit forum channel availableTags ID is optional
    • Add maxStageVideoChannelUsers
    • Make ApplicationCommand#guild nullable (differentiates between uncached & global)
    • Add Guild/GuildPreview discoverySplashURL & splashURL
    • Add generic for InteractionOptionsWrapper#getSubCommand
    • Add SortOrderModes for forum threads
    • Add edit method to Role
    • Add more concise getX errors & add users to cache (InteractionOptionsWrapper)
    • Add CommandInteraction messages to cache
    • Convert resolved channels to InteractionResolvedChannel instances (also fixes an iussue with receiving dms in resolved channels
    • Fix some typos and simplify some regex statements (#17)

    Breaking

    • Guilds#editMFALevel's second parameter now accepts an object
    • AuditLogActionTypes
      • AUTO_MODERATION_ALERT renamed to AUTO_MODERATION_FLAG_TO_CHANNEL (official name)
      • AUTO_MODERATION_TIMEOUT renamed to AUTO_MODERATION_USER_COMMUNICATION_DISABLED (official name)
    • ChannelFlags
      • FORUM_TAG_REQUIRED renamed to REQUIRE_TAG (official name)
    • GuildScheduledEventPrivacyLevels
      • Remove PUBLIC
    Source code(tar.gz)
    Source code(zip)
  • v1.0.2(Sep 14, 2022)

  • v1.0.0(Sep 14, 2022)

    • Properly set Invite#channel
    • Expost RequestHandler via RESTManager#handler
    • Add a guildID to Integrations
    • Fetch guild & role for Integrations
    • Make getBans loop for limits >1000
    • Make getMessages loop for limits > 100
    • Make getReactions loop for limits > 100
    • Make deleteMessages loop for more than 100 messages
    • New purgeMessages function in the channels route
    • fix THREAD_MEMBERS_UPDATE assuming things will always be pesent which aren't (added_members & removed_member_ids)
    Source code(tar.gz)
    Source code(zip)
  • v1.0.0-rc.5(Sep 14, 2022)

    • QoL changes & doc fixes (5b956e1acc9bc4dc1a5b61c9d1ff8ff55232d025, 741aa5c7756c6a23ad8fdad09bc0a0f7a512a0b6)
    • Allow usage of bigint in Permission#has (86ec9e0e20f1a811cce27b7507ef6515513d7dbf, 92e6f5085084daf6c3278f6b2df627250b57a0b2)
    • Voice Example (b239915c5a89835247f9dfa4c04cbb48a723228a)
    • (docs) Remove folder prefix from various classes (5d2a3067dc1001923f8e5f38f9e547bd91c81da5, 65b4872e2efbc8901f6e9c56674ef56303cb342f, 9ddf127f4f59b6d8d18d331ec0d89549b07c4f60, 9816f0c7c139d02debbc488a758e326af5cb0871)
    • Interactions Example (9ddf127f4f59b6d8d18d331ec0d89549b07c4f60)
    • Add missing descriptions to various classes (f696b2f6d1b6b176c237fc1d258a0139e031bd49)
    • (internal) Refacto out Properties class (ef20a75d9de931064c1912d2ed25fa3cc8215fde)
    • Fix deleting integrations (39a046c35d2f1f0d2434cd0c7f7699d6bc4e5387)
    • Only publish dev versions a maxium of once per hour (6aa39e28c91e6e8e7ae01dd2ec7615261dbbc0b5)
    • Fix invites constructing very basic channels when channels are not cached (they will be partial now) (70952fbaeaac3cab21f53f7b3196cebfd7ed6953, 7001173b576562cb578470def27f2cd8fb667cad, 70952fbaeaac3cab21f53f7b3196cebfd7ed6953, 4413438a0f46d48b78a02ef97ce669435bb0456d, 053876f4cf4dcad77e4f39a82c7c292d9c47177c, ad6b9353bad70ef866d957a64f0229242ca7fef2, 5b5f72c33c2f011302b31a07192b78e6305d746b)
    Source code(tar.gz)
    Source code(zip)
  • v1.0.0-rc.4(Sep 13, 2022)

    • Fix the createBan method using POST
    • Events have been changed to support various partial objects
    • fix getAllUsers
    • more generics for Interaction & Message properties
    • Support for voice via @discordjs/voice
    Source code(tar.gz)
    Source code(zip)
  • v1.0.0-rc.3(Sep 11, 2022)

  • v1.0.0-rc.2(Sep 10, 2022)

  • v1.0.0-rc.1(Sep 10, 2022)

    • TypedCollection will properly delete values when the limit is hit
    • TextInput's maxLength has been corrected from boolean to number (#9)
    • EditMemberOptions#roles has been corrected to be an array of strings
    • A suplicate export of TypedCollection in esm has been corrected
    • Various codebase refactors have been done to make the code cleaner
    • Methods in the Guilds rest routes will not add guilds to the cache anymore
    • The localization generic has been removed from the ApplicationCommands rest routes
    • Webhooks#getChannel & Webhooks#getGuild have been renamed to getForChannel & getForGuild and now actually return webhook instances
    • Member#publicUsers getter has been corrected to publicFlags
    • getJoinedPrivateArchivedThreads & getPrivateArchivedThreads have been moved from TextableChannel to TextChannel (these are not applicable to Announcement channels)
    • Embeds have been corrected to properly allow for things like color = 0 (falsey values)
    • A jumpLink getter has been added to Message
    • A link to the relevant event pages has been added to the description of classes
    • Events have been moved from types/client to types/events
    • Two utility types PossiblyUncachedMessage & PossiblyUncachedThread have been added for use in events
    • A documentation test workflow has been added
    • Getting application commands now takes an object instead of a single parameter. This is a breaking change, no backwards compatibility is provided.
    • Getting application commands now supports sending a locale, which will return desciptionLocalized and nameLocalized, if applicable
    • The compression and encoding optional dependencies have been removed from optionalDependences and added to the README
    • A set of Contributing Guidelines have been added
    • Interaction typings have been overhauled
    • A clientMember getter has been added to Guild
    • ForumChannel's parenttype has been corrected to CategoryChannel | null
    Source code(tar.gz)
    Source code(zip)
  • v0.0.11(Sep 7, 2022)

    • Properly assign joinedAt in Guild (#8)
    • Fix for MESSAGE_UPDATE events causing errors when partial
    • Remove *ID functions from InteractionOptionsWrapper
    • Fix mentionable in InteractionOptionsWrapper
    • Remove *Value from functions, and add Option to functions in InteractionOptionsWrapper (e.g. getString -> getStringOption, getStringValue -> getString)
    • Refactor collections (remove external dependency, we also export a Collection class that can be used in your personal projects.)
    • The members collectionLimits option now accepts an unknown key when using an object (this will be used when a guild id is not present)
    • The members collectionLimits option now defaults to Infinity
    Source code(tar.gz)
    Source code(zip)
  • v0.0.10(Sep 4, 2022)

    • implement collection limits
      • members - can be a number to apply to all guilds individually, or a dictionary of guild IDs to member limits (any not listed is effectively Infinity) - Default: 1000
      • messages - Default: 100
      • users - Default: Infinity
      • Other (non-configurable):
        • Client#groupChannels - Limit: 10
        • Client#privateChannels - Limit: 25
    • Interaction#acknowledge is now public
    • Client#uptime added
    • AutocompleteInteraction#defer removed
    • Fix TypedCollection export in esm
    • Fix Constants & Routes esm exports
    • add types to exports
    Source code(tar.gz)
    Source code(zip)
  • v0.0.9(Sep 2, 2022)

    • strictPropertyInitialization compiler option added, this will prevent most unexpected missing property errors
    • The client property is now publicly accessible for all Base based classes
    • ForumChannel's lastThread is now properly updated
    • A more specific error was added when a token is not prefixed with Bot while connecting to gateway
    • The tsafe & debug dependencies were removed
    • emit debug instead of error for gateway disconnects out of our control (code 1001 and 1006) (#1)
    • various internal properties were changed from being conventionally private (_ prefix) to being properly private (# prefix)
    • Client#application & Client#user will now give more useful errors if they are not present
    • The build files & docs were removed from the github repository
    • Embed properties are now camelCased
    • Installing from github will now build the module locally on your computer (see build.js)
    Source code(tar.gz)
    Source code(zip)
  • v0.0.8(Aug 31, 2022)

    • Message#deleteMessage -> Message#delete
    • Fix ModalSubmitInteraction referencing guild.id, which may not be present
    • Add to, remove from & update channel threads collections on creation/deletetion/update
    • add permissionsOf to ThreadChannel (returns the parent channel's permissions)
    • specific interaction types for guild & dm
    • [renamed type] AnyGatewayInteraction -> AnyInteractionGateway
    • make ALL intents work properly
    • Guild#joinedAt is optional
    • Add threads collection to AnnouncementChannel
    • Implement Forum channels
    Source code(tar.gz)
    Source code(zip)
  • v0.0.7(Aug 30, 2022)

    • add guild parameter back to guildMemberRemove
    • ignore GUILD_MEMBER_REMOVE for client user
    • SYSTEM & SPAMMER user flags
    • AUTO_MODERATION guild feature
    • [constant rename] ScheduledEventPrivacyLevels -> GuildScheduledEventPrivacyLevels
    • [constant rename] ScheduledEventStatuses -> GuildScheduledEventStatuses & CANCELLED -> CANCELED
    • [constant rename] ScheduledEventEntityTypes -> GuildScheduledEventEntityTypes
    • [class rename] ScheduledEvent -> GuildScheduledEvent
    • add ThreadMemberFlags
    • [docs, types] correct return type of createEmoji
    • AutocompleteInteraction#defer
    • Add methods to ModalSubmitInteraction
    • permissionsOf, Member#permissions & *Interaction#memberPermissions
    • reduce createChannel fuckery (reduced from several overloads down to none)
    • Guild#leave method
    • InteractionOptionsWrapper refactor (all methods now automatically search in subcommands, getSubCommand now returns an array of strings (one or two))
    • properly implement AutocompleteInteraction#result
    • move most docs onto interfaces (so descriptions now appear properly on the docs)
    • Role#deleteRole -> Role#delete
    • followAnnouncement options changed to webhookChannelID parameter
    Source code(tar.gz)
    Source code(zip)
  • v0.0.6(Aug 29, 2022)

    • fixed CHANNEL_BULK_DELETE_MESSAGES using DELETE instead of POST
    • added deleteMessages to TextableChannel
    • the types for creating & editing guild commands were seprated from the global types
    • an error in ratelimit handling was corrected
    • less reliance on cached objects
      • guildMemberAdd, guildMemberRemove & guildMemberUpdate no longer have a guild parameter
      • oldGuild in guildUpdate is nullable
      • webhooksUpdate now includes a guild
    • autoModerationActionExecution actually works now, and has two new parameters: channel & user, as well as executionOptions being changed
    Source code(tar.gz)
    Source code(zip)
  • v0.0.5(Aug 28, 2022)

  • v0.0.4(Aug 28, 2022)

  • v0.0.1(Aug 28, 2022)

Owner
Oceanic
A set of libaries for interfacing with Discord.
Oceanic
Discord-Bot - You can use the discord bot codes that are updated in every video of the codes I use in the discord bot making series that I have published on my youtube channel.

Discord-Bot You can use the discord bot codes that are updated in every video of the codes I use in the discord bot making series that I have publishe

Umut Bayraktar 114 Jan 3, 2023
Discord Neura - a Discord bot framework built on discord.js

Discord Neura Description Discord Neura is a Discord bot framework built on discord.js. Features Command Handler, Arguments, Preconditions and Listene

Discord Neura 3 Mar 23, 2022
Gitlift Discord Bot is a discord bot which is listening Discord Messages to reply with user gitlift profile and total contributions.

Remoklify - Gitlift Discord Bot Gitlift Discord Bot is a discord bot which is listening Discord Messages to reply with user gitlift profile and total

Remoklify 3 Mar 20, 2022
A discord bot made using discord.js and discord-player

Musx A custom discord bot that can play music in your server ?? Add the bot to your server If you are looking for a music bot for your Discord server

Shashwat Singh 4 Mar 28, 2022
About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this command handler.

discordJS-V14 About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this

Umut Bayraktar 36 Dec 28, 2022
A useful nodejs program to send notification on discord when new result

A useful nodejs program to send notification on discord when new result

Alwyn974 5 Mar 23, 2022
⚡ Discord bot with economy, gambling, music, fun, moderation features based on discord.js v12

Crucian Crucian is my discord bot with simple structure based on discord.js Click Here to invite Crucian to your server Author Crucian © Apoo Authored

apoow3b 3 Jul 26, 2021
A multipurpose Discord-bot created using discord.js.

Flame A multipurpose Discord-bot with music, economy, utils, and also auto-moderation. Flame is a powerfull, multipurpose and fully modular Discord-bo

Flame 38 Nov 14, 2021
An simple package to create an Activity in Discord Voice Channel using Discord.js

discordjs-activity An simple package to create an Activity in Discord Voice Channel using Discord.js ?? | Installation npm install discordjs-activity

Sudhan 55 Nov 15, 2022
best discord selfbot with discord.js-selfbot npm

Discord-Afk-Selfbot best discord selfbot with discord.js-selfbot npm How to start the Bot step by step : Step 1 ===> Open a CMD the npm init step 2 ==

Mani-MBn 5 Aug 18, 2022