mirror of
https://github.com/danbulant/discord.js
synced 2026-05-19 04:19:00 +00:00
Fix options
This commit is contained in:
parent
c513df444e
commit
2eaafaf1d3
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ class ApplicationCommand extends Base {
|
|||
* @type {Object[]}
|
||||
* @readonly
|
||||
*/
|
||||
this.options = data.options.map(function m(o) {
|
||||
this.options = data.options?.map(function m(o) {
|
||||
return {
|
||||
type: ApplicationCommandOptionType[o.type],
|
||||
name: o.name,
|
||||
|
|
|
|||
Loading…
Reference in a new issue