Skip to content
Loading navigation…
Docs Changelog
On this page
1.2.4
Voice and music live in require("@discord/voice") (package 0.1.0): play, join, leave, skip, pause, resume, stop, queueEmbed
discord.music and client.music removed; require("discord") no longer exports voice helpers
Docs gained a package switcher for discord and @discord/voice
examplebot voice and music commands import the voice package
Package version 1.2.4 published on the version API so dislua update can install this build
1.2.2
Real voice playback: require("@discord/voice") decodes audio with ffmpeg, encodes Opus, and streams 20 ms frames
runtime.ensureVoiceTools(callback) downloads official ffmpeg and yt-dlp binaries into <exe>/tools when they are missing (Windows auto-download; other platforms use PATH)
HTTP client follows 301/302/303/307/308 redirects so GitHub and gyan.dev downloads succeed
examplebot music commands search YouTube and play without a manual ffmpeg or yt-dlp install
Package version 1.2.2 published on the version API so dislua update can install this build
1.2.1
Permission overwrites: allow / deny are frozen PermissionsBitField values; true allows, false denies, discord.null inherits
PermissionOverwriteManager:edit / create / delete / set take optional { type, reason } and a callback; create errors if the overwrite already exists
Role and guild id (@everyone) resolve as OverwriteType.Role when type is omitted
Channel:lock and Channel:unlock removed — deny or inherit SendMessages with channel.permissionOverwrites:edit
Channel:lockPermissions copies parent overwrites through permissionOverwrites:set
HTTP 204/205/304 responses have no body and do not probe the socket, so bulk-delete is not treated as a REST failure
TLS copies application data when the peer sends close_notify in the same record, so message list GET bodies are not dropped
GET/HEAD requests no longer send a JSON object or array body
Collection length (#collection) matches :size()
Message wrap reuses the registered channel so bulk-delete sees one message cache
Package version 1.2.4 published on the version API so dislua update can install this build
1.2.0
Named channel hierarchy: GuildChannel, BaseGuildTextChannel, BaseGuildVoiceChannel, plus specialized message and application-command managers
Modal component family: Label, FileUpload, RadioGroup, CheckboxGroup, Checkbox — structures, builders, and modal-submit resolvers
Voice messages, role member counts, activity instances, member collectibles, stage bitrate, and structured authorizing integration owners
Builder from() helpers, sendPremiumRequired, and application-command DM permission
Poll voter fetch, guest invites, editMe, guild-template create, and public WebSocket manager/shard plus Guild.shard
Voice helpers (joinVoiceChannel, getVoiceConnection, entersState, createAudioPlayer) without PCM/Opus codecs
Formatters, collection leftovers, extra REST routes, CDN emoji URLs, and mixin tables TextBasedChannel / InteractionResponses
Gateway events invalidated, cacheSweep, shardCreate; WebSocket shard close / allReady
Named Create/Edit/Fetch option tables and extra enums (gateway opcodes/close codes, invite/webhook types, guild features, onboarding, …)
Package aliases ClientVoiceManager and top-level util helpers (parseEmoji, resolveColor, cleanContent, …)
Fix: client.rest remains the REST manager; native HTTP uses client:_rest so message:reply and other REST calls work
High-level moderation without REST paths: guild:kick / ban / timeout, channel:bulkDelete / lock / setSlowmode, member.roles:add
message:reply and channel:send callbacks receive a wrapped Message, so follow-up edit does not need a raw path
Client-side permission checks: member.permissions:has, channel:permissionsFor, guild.members.me.permissions, interaction.memberPermissions / appPermissions
Package version 1.2.0 published on the version API so dislua update can install this build
1.1.5
Discord module 1.1.5: util helpers (invite/template codes, emoji parse, colors, webhook URLs, flatten, sort)
Package version 1.1.5 published on the version API so dislua update can install this build
Complete generated API reference covering public classes, methods, properties, events, enums, CLI, and runtime
1.1.0
Managers, typed channels and interactions, collectors, formatters
Native voice connections and VoiceReceiver
ShardingManager, SKU/subscription/application emoji managers
Components V2 builders and awaitModalSubmit
1.0.0
Native Lua 5.4 runtime, Discord Gateway and REST
CLI aliases, Windows installer, update client, versioned documentation