n8n-nodes-discord-dnd
Version:
n8n node to create triggers for Discord events
60 lines (59 loc) • 1.66 kB
TypeScript
export interface ITriggerParameters {
triggerType: string;
event: string;
includeBot?: boolean;
directMessage?: boolean;
pattern?: string;
value?: string;
serverIds?: string[];
channelIds?: string[];
roleIds?: string[];
userIds?: string[];
}
export interface IActionParameters {
actionType: string;
action: string;
}
export declare enum PatternType {
BOT_MENTION = "botMention",
CONTAINS = "contains",
STARTS_WITH = "startsWith",
ENDS_WITH = "endsWith",
EQUALS = "equals",
REGEX = "regex",
EVERY = "every"
}
export declare enum TriggerType {
MESSAGE = "message",
GUILD = "guild",
MODERATION = "moderation",
EMOJI_STICKER = "emojiSticker",
INTEGRATION_WEBHOOK = "integrationWebhook",
INVITE = "invite",
VOICE = "voice",
PRESENCE = "presence",
SCHEDULED_EVENT = "scheduledEvent",
INTERACTION = "interaction",
BOT_STATUS = "botStatus",
USER = "user",
AUTO_MODERATION = "autoModeration",
POLL = "poll"
}
export declare enum ActionType {
MESSAGE = "message"
}
export declare enum ActionEventType {
SEND_TYPING = "sendTyping",
SEND_MESSAGE = "sendMessage",
DELETE_MESSAGE = "deleteMessage",
EDIT_MESSAGE = "editMessage",
REACT_TO_MESSAGE = "reactToMessage",
REMOVE_REACTION = "removeReaction",
PIN_MESSAGE = "pinMessage",
UNPIN_MESSAGE = "unpinMessage",
ADD_REACTION = "addReaction",
REMOVE_REACTION_EMOJI = "removeReactionEmoji",
DELETE_REACTION_EMOJI = "deleteReactionEmoji",
DELETE_ALL_REACTIONS = "deleteAllReactions",
DELETE_ALL_REACTIONS_EMOJI = "deleteAllReactionsEmoji"
}