Releases: ddoodev/discordoo
v0.12.5
v0.12.4
Hotfix release
Move @discordoo/providers
dependency from devDependencies
to dependencies
in package.json
v0.12.3
Minor fixes and additions
Added
- Allowed mentions now available;
sendTyping
method forWritableChannel
.
Fixed
- Changed type for
emoji
property fromRequired<AbstractEmojiData>
toAbstractEmojiData
inSelectMenuOptionData
; - Added missing
name
property inAbstractThreadChannel
; - Added missing
explicitContentFilter
inGuild
; - Added missing methods and properties (
minLength
,maxLength
,minValue
,maxValue
,channelTypes
) inAppCommandOptionBuilder
; - Added
boolean
type invalue
property inAppCommandInteractionOptionPayload
interface.
Full Changelog: v0.12.2...v0.12.3
v0.12.2
Minor fixes in interactions
Fixed:
- the ability to respond with a modal window has been added to
MessageComponentInteraction
; AppCommandInteractionData
has been divided into several parts to add missing data: target id.
Full Changelog: v0.12.0...v0.12.2
v0.12.0
This is breaking release
Interactions is finished!
Now you can fully operate with interactions, including Modal, Autocomplete & UI Commands.
Client changes
The Client
class no longer exists. There are three DiscordApplication
s:
- with gateway, cache and rest: DiscordApplication;
- without gateway: DiscordRestApplication;
- and without gateway and rest: DiscordCacheApplication.
All client
properties have been renamed to app
.
Startup changes
The createApp
function no longer exists. The replacement is DiscordFactory
:
import { DiscordFactory, IntentsUtil } from 'discordoo'
const app = DiscordFactory.create('discord-bot-token', { // ApplicationOptions
gateway: { // passing GatewayOptions
intents: IntentsUtil.ALL // passing intents to work with all events
}
})
app.on('messageCreate', context => { // MessageCreateEventContext
const { message: msg } = context
if (msg.content === '!ping') { // some kind of command
// the latency is updated once every 40 seconds as soon as the heartbeat occurs
msg.reply(`🏓 pong! ${app.gateway.ping}ms`)
}
})
app.start()
Docs
We switched to Angular documentation, now it's easier to use and it looks nicer. Check it out: https://docs.ddoo.dev/
NodeJS Update
v0.12.0 requires NodeJS v16.13 or newer. Discordoo now compiles to ES2020 target.
Full changelog
See: v0.11.5...v0.12.0
v0.11.5
v0.11.2
there are breaking change in @discordoo/collection. option 'return' has been renamed to 'returnType'. changed by pr: ddoodev/collection#6
v0.11.0
this is breaking release.
- to create message attachment, change MessageAttachment to MessageAttachmentConstructor. MessageAttachment now used to represent Discord's attachments, not to build them.
- same with MessageEmbed. you must build embeds with MessageEmbedConstructor now.
added events:
- GuildMemberAdd
- GuildMemberRemove
- GuildMemberUpdate
- GuildUpdate
- GuildRemove
Full Changelog: v0.10.0...v0.11.0
v0.10.0
This release fixes CVE-2022-23812.
v0.9.15
This release adds a lot of things. Trust me.
Full Changelog: v0.9.14...v0.9.15