Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/discordeno/mod.ts>Transformers

Discord API library for Deno
Extremely Popular
Go to Latest
interface Transformers
import { type Transformers } from "https://deno.land/x/discordeno@17.2.0/mod.ts";

Properties

reverse: { allowedMentions: (bot: Bot, payload: AllowedMentions) => DiscordAllowedMentions; embed: (bot: Bot, payload: Embed) => DiscordEmbed; component: (bot: Bot, payload: Component) => DiscordComponent; activity: (bot: Bot, payload: Activity) => DiscordActivity; member: (bot: Bot, payload: Member) => DiscordMember; user: (bot: Bot, payload: User) => DiscordUser; team: (bot: Bot, payload: Team) => DiscordTeam; application: (bot: Bot, payload: Application) => DiscordApplication; snowflake: (snowflake: BigString) => string; createApplicationCommand: (bot: Bot, payload: CreateApplicationCommand) => DiscordCreateApplicationCommand; applicationCommand: (bot: Bot, payload: ApplicationCommand) => DiscordApplicationCommand; applicationCommandOption: (bot: Bot, payload: ApplicationCommandOption) => DiscordApplicationCommandOption; applicationCommandOptionChoice: (bot: Bot, payload: ApplicationCommandOptionChoice) => DiscordApplicationCommandOptionChoice; interactionResponse: (bot: Bot, payload: InteractionResponse) => DiscordInteractionResponse; attachment: (bot: Bot, payload: Attachment) => DiscordAttachment; }
snowflake: (snowflake: BigString) => bigint
gatewayBot: (payload: DiscordGetGatewayBot) => GetGatewayBot
automodRule: (bot: Bot, payload: DiscordAutoModerationRule) => AutoModerationRule
automodActionExecution: (bot: Bot, payload: DiscordAutoModerationActionExecution) => AutoModerationActionExecution
channel: (bot: Bot, payload: { channel: DiscordChannel; } & { guildId?: bigint; }) => Channel
guild: (bot: Bot, payload: { guild: DiscordGuild; } & { shardId: number; }) => Guild
user: (bot: Bot, payload: DiscordUser) => User
member: (
bot: Bot,
payload: DiscordMember,
guildId: bigint,
userId: bigint,
) => Member
message: (bot: Bot, payload: DiscordMessage) => Message
role: (bot: Bot, payload: { role: DiscordRole; } & { guildId: bigint; }) => Role
voiceState: (bot: Bot, payload: { voiceState: DiscordVoiceState; } & { guildId: bigint; }) => VoiceState
interaction: (bot: Bot, payload: DiscordInteraction) => Interaction
interactionDataOptions: (bot: Bot, payload: DiscordInteractionDataOption) => InteractionDataOption
integration: (bot: Bot, payload: DiscordIntegrationCreateUpdate) => Integration
invite: (bot: Bot, invite: DiscordInviteCreate) => Invite
application: (bot: Bot, payload: DiscordApplication) => Application
team: (bot: Bot, payload: DiscordTeam) => Team
emoji: (bot: Bot, payload: DiscordEmoji) => Emoji
activity: (bot: Bot, payload: DiscordActivity) => Activity
presence: (bot: Bot, payload: DiscordPresenceUpdate) => PresenceUpdate
attachment: (bot: Bot, payload: DiscordAttachment) => Attachment
embed: (bot: Bot, payload: DiscordEmbed) => Embed
component: (bot: Bot, payload: DiscordComponent) => Component
webhook: (bot: Bot, payload: DiscordWebhook) => Webhook
auditLogEntry: (bot: Bot, payload: DiscordAuditLogEntry) => AuditLogEntry
applicationCommand: (bot: Bot, payload: DiscordApplicationCommand) => ApplicationCommand
applicationCommandOption: (bot: Bot, payload: DiscordApplicationCommandOption) => ApplicationCommandOption
applicationCommandPermission: (bot: Bot, payload: DiscordGuildApplicationCommandPermissions) => ApplicationCommandPermission
scheduledEvent: (bot: Bot, payload: DiscordScheduledEvent) => ScheduledEvent
threadMember: (bot: Bot, payload: DiscordThreadMember) => ThreadMember
welcomeScreen: (bot: Bot, payload: DiscordWelcomeScreen) => WelcomeScreen
voiceRegion: (bot: Bot, payload: DiscordVoiceRegion) => VoiceRegions
widget: (bot: Bot, payload: DiscordGuildWidget) => GuildWidget
widgetSettings: (bot: Bot, payload: DiscordGuildWidgetSettings) => GuildWidgetSettings
stageInstance: (bot: Bot, payload: DiscordStageInstance) => StageInstance
sticker: (bot: Bot, payload: DiscordSticker) => Sticker
stickerPack: (bot: Bot, payload: DiscordStickerPack) => StickerPack
applicationCommandOptionChoice: (bot: Bot, payload: DiscordApplicationCommandOptionChoice) => ApplicationCommandOptionChoice
template: (bot: Bot, payload: DiscordTemplate) => Template