mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-18 21:54:14 +02:00
fix(arabot): new sapphire interaction handler
This commit is contained in:
parent
619aeb533b
commit
fc2574e8e1
@ -21,12 +21,11 @@ import {
|
|||||||
InteractionHandler,
|
InteractionHandler,
|
||||||
InteractionHandlerTypes,
|
InteractionHandlerTypes,
|
||||||
} from '@sapphire/framework';
|
} from '@sapphire/framework';
|
||||||
import type { PieceContext } from '@sapphire/framework';
|
|
||||||
import type { ButtonInteraction, GuildMember } from 'discord.js';
|
import type { ButtonInteraction, GuildMember } from 'discord.js';
|
||||||
import IDs from '#utils/ids';
|
import IDs from '#utils/ids';
|
||||||
|
|
||||||
export class NonVeganAccessButtonHandler extends InteractionHandler {
|
export class NonVeganAccessButtonHandler extends InteractionHandler {
|
||||||
public constructor(ctx: PieceContext, options: InteractionHandler.Options) {
|
public constructor(ctx: InteractionHandler.LoaderContext, options: InteractionHandler.Options) {
|
||||||
super(ctx, {
|
super(ctx, {
|
||||||
...options,
|
...options,
|
||||||
interactionHandlerType: InteractionHandlerTypes.Button,
|
interactionHandlerType: InteractionHandlerTypes.Button,
|
||||||
|
@ -21,12 +21,11 @@ import {
|
|||||||
InteractionHandler,
|
InteractionHandler,
|
||||||
InteractionHandlerTypes,
|
InteractionHandlerTypes,
|
||||||
} from '@sapphire/framework';
|
} from '@sapphire/framework';
|
||||||
import type { PieceContext } from '@sapphire/framework';
|
|
||||||
import type { ButtonInteraction, GuildMember, TextChannel } from 'discord.js';
|
import type { ButtonInteraction, GuildMember, TextChannel } from 'discord.js';
|
||||||
import IDs from '#utils/ids';
|
import IDs from '#utils/ids';
|
||||||
|
|
||||||
export class WelcomeButtonHandler extends InteractionHandler {
|
export class WelcomeButtonHandler extends InteractionHandler {
|
||||||
public constructor(ctx: PieceContext, options: InteractionHandler.Options) {
|
public constructor(ctx: InteractionHandler.LoaderContext, options: InteractionHandler.Options) {
|
||||||
super(ctx, {
|
super(ctx, {
|
||||||
...options,
|
...options,
|
||||||
interactionHandlerType: InteractionHandlerTypes.Button,
|
interactionHandlerType: InteractionHandlerTypes.Button,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user