Update tests
This commit is contained in:
parent
e28fafea69
commit
6f241ab349
2 changed files with 139 additions and 4 deletions
|
@ -19,7 +19,7 @@ export default class Effects extends ButtonEvent {
|
|||
}
|
||||
}
|
||||
|
||||
private async List(interaction: ButtonInteraction) {
|
||||
public async List(interaction: ButtonInteraction) {
|
||||
const pageOption = interaction.customId.split(" ")[2];
|
||||
|
||||
const page = Number(pageOption);
|
||||
|
@ -37,7 +37,7 @@ export default class Effects extends ButtonEvent {
|
|||
});
|
||||
}
|
||||
|
||||
private async Use(interaction: ButtonInteraction) {
|
||||
public async Use(interaction: ButtonInteraction) {
|
||||
const subaction = interaction.customId.split(" ")[2];
|
||||
|
||||
switch (subaction) {
|
||||
|
@ -50,7 +50,7 @@ export default class Effects extends ButtonEvent {
|
|||
}
|
||||
}
|
||||
|
||||
private async UseConfirm(interaction: ButtonInteraction) {
|
||||
public async UseConfirm(interaction: ButtonInteraction) {
|
||||
const id = interaction.customId.split(" ")[3];
|
||||
|
||||
const effectDetail = EffectDetails.get(id);
|
||||
|
@ -108,7 +108,7 @@ export default class Effects extends ButtonEvent {
|
|||
await interaction.reply("Unable to use effect! Please make sure you have it in your inventory and is not on cooldown");
|
||||
}
|
||||
|
||||
private async UseCancel(interaction: ButtonInteraction) {
|
||||
public async UseCancel(interaction: ButtonInteraction) {
|
||||
const id = interaction.customId.split(" ")[3];
|
||||
|
||||
const effectDetail = EffectDetails.get(id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue