Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | import { CommandConfig, CommandPermissions } from "@/common/decorators"; import { CommandConfigGuard, CommandPermissionsGuard } from "@/common/guards"; import { localizationMapByKey } from "@necord/localization"; import { Inject, Injectable, Logger, UseGuards } from "@nestjs/common"; import { Ctx, SlashCommand, SlashCommandContext, Subcommand } from "necord"; import type { IReactionRolesEmbeds, IReactionRolesService } from "../interfaces"; import { ReactionRoles } from "../types/constants"; @Injectable() export class ReactionTypesCommand { public constructor( @Inject(ReactionRoles.Service) private readonly reaction: IReactionRolesService, @Inject(ReactionRoles.Embeds) private readonly Embeds: IReactionRolesEmbeds, ) {} private readonly logger = new Logger(ReactionTypesCommand.name); @Subcommand({ name: "types", description: "Show the types of ReactionRoles", nameLocalizations: localizationMapByKey("ReactionRoles.types.name"), descriptionLocalizations: localizationMapByKey("ReactionRoles.types.description"), }) @CommandConfig({ category: "🎩 ReactionRole", disable: false }) @CommandPermissions({ user: ["SendMessages", "AddReactions", "ManageRoles"], bot: ["EmbedLinks", "AddReactions", "ManageRoles"], guildOnly: false, ownerOnly: false, }) @UseGuards(CommandConfigGuard, CommandPermissionsGuard) public async onCommandRun(@Ctx() [interaction]: SlashCommandContext) {} } |