All files / src/modules/bot/reactionRoles/commands/EditReaction EditReaction.dto.ts

0% Statements 0/4
100% Branches 0/0
100% Functions 0/0
0% Lines 0/4

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 35 36 37 38 39 40 41 42 43                                                                                     
import { localizationMapByKey } from "@necord/localization";
import { ChannelType, GuildTextBasedChannel, Role } from "discord.js";
import { ChannelOption, RoleOption, StringOption } from "necord";
 
export class EditReactionDTO {
	@ChannelOption({
		name: "channel",
		description: "Channel where the ReactionRole will be created",
		name_localizations: localizationMapByKey("ReactionRoles.delete.options.channel.name"),
		description_localizations: localizationMapByKey("ReactionRoles.delete.options.channel.description"),
		channel_types: [ChannelType.GuildText],
		required: true,
	})
	public readonly channel: GuildTextBasedChannel;
 
	@StringOption({
		name: "message",
		description: "Message ID that the member will react",
		name_localizations: localizationMapByKey("ReactionRoles.delete.options.message.name"),
		description_localizations: localizationMapByKey("ReactionRoles.delete.options.message.description"),
		required: true,
	})
	public readonly messageId: string;
 
	@RoleOption({
		name: "role",
		description: "Role to be used in ReactionRole",
		name_localizations: localizationMapByKey("ReactionRoles.delete.options.role.name"),
		description_localizations: localizationMapByKey("ReactionRoles.delete.options.role.description"),
		required: true,
	})
	public readonly role: Role;
 
	@StringOption({
		name: "emoji",
		description: "Emoji that the user will react",
		name_localizations: localizationMapByKey("ReactionRoles.delete.options.emoji.name"),
		description_localizations: localizationMapByKey("ReactionRoles.delete.options.emoji.description"),
		required: true,
	})
	public readonly emoji: string;
}