@duxcore/interactive-discord
Advanced tools
Comparing version 1.4.8 to 1.4.9
@@ -5,3 +5,3 @@ { | ||
"description": "A package that will allow you to seamlessly integrate discord interactions into your bot.", | ||
"version": "1.4.8", | ||
"version": "1.4.9", | ||
"license": "GPL-3.0", | ||
@@ -8,0 +8,0 @@ "main": "lib/index", |
import InteractiveClient from ".."; | ||
import { RawInteractionObject } from "../util/types/interactions"; | ||
import { OptionsEntity, RawInteractionObject } from "../util/types/interactions"; | ||
import { InteractionControllerBase } from "./InteractionControllerBase"; | ||
@@ -7,6 +7,9 @@ | ||
private _name: string; | ||
private _options?: OptionsEntity[] | null | undefined; | ||
constructor(raw: RawInteractionObject, client: InteractiveClient) { | ||
super(raw, client); | ||
this._name = raw.data.name || ""; | ||
this._options = raw.data.options; | ||
} | ||
@@ -17,2 +20,6 @@ | ||
} | ||
get options(): OptionsEntity[] | null | undefined { | ||
return this._options; | ||
} | ||
} |
@@ -84,2 +84,3 @@ import { MessageEmbed } from "discord.js"; | ||
name: string; | ||
options?: OptionsEntity[] | ||
} | ||
@@ -86,0 +87,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
113148
1422