Skip to main content

Class: PluginPatternCommandsMessageParseListener

Extends

  • Listener<typeof Events.PreMessageParsed>

Constructors

new PluginPatternCommandsMessageParseListener()

new PluginPatternCommandsMessageParseListener(context: LoaderContext): PluginPatternCommandsMessageParseListener

Parameters

ParameterType
contextLoaderContext

Returns

PluginPatternCommandsMessageParseListener

Overrides

Listener<typeof Events.PreMessageParsed>.constructor

Source

listeners/PluginMessageParse.ts:10

Properties

requiredPermissions

private readonly requiredPermissions: Readonly <BitField<"CreateInstantInvite" | "KickMembers" | "BanMembers" | "Administrator" | "ManageChannels" | "ManageGuild" | "AddReactions" | "ViewAuditLog" | "PrioritySpeaker" | "Stream" | "ViewChannel" | "SendMessages" | "SendTTSMessages" | "ManageMessages" | "EmbedLinks" | "AttachFiles" | "ReadMessageHistory" | "MentionEveryone" | "UseExternalEmojis" | "ViewGuildInsights" | "Connect" | "Speak" | "MuteMembers" | "DeafenMembers" | "MoveMembers" | "UseVAD" | "ChangeNickname" | "ManageNicknames" | "ManageRoles" | "ManageWebhooks" | "ManageEmojisAndStickers" | "ManageGuildExpressions" | "UseApplicationCommands" | "RequestToSpeak" | "ManageEvents" | "ManageThreads" | "CreatePublicThreads" | "CreatePrivateThreads" | "UseExternalStickers" | "SendMessagesInThreads" | "UseEmbeddedActivities" | "ModerateMembers" | "ViewCreatorMonetizationAnalytics" | "UseSoundboard" | "CreateGuildExpressions" | "CreateEvents" | "UseExternalSounds" | "SendVoiceMessages" | "SendPolls", bigint>>

Source

listeners/PluginMessageParse.ts:9

Methods

canRunInChannel()

private canRunInChannel(message: Message<boolean>): Promise<boolean>

Parameters

ParameterType
messageMessage<boolean>

Returns

Promise<boolean>

Source

listeners/PluginMessageParse.ts:88


run()

run(message: Message<boolean>): Promise<void>

Parameters

ParameterType
messageMessage<boolean>

Returns

Promise<void>

Overrides

Listener.run

Source

listeners/PluginMessageParse.ts:14