mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 03:18:17 +00:00
fix: lil bit of cleanup
This commit is contained in:
@@ -4,7 +4,7 @@ import type { Bot } from "../../bot.ts";
|
||||
export function avatarURL(
|
||||
bot: Bot,
|
||||
userId: bigint,
|
||||
discriminator: number,
|
||||
discriminator: string,
|
||||
options?: {
|
||||
avatar: bigint | undefined;
|
||||
size?: ImageSize;
|
||||
|
||||
@@ -29,7 +29,6 @@ export function transformInteraction(bot: Bot, payload: DiscordInteraction) {
|
||||
channelId: payload.channel_id ? bot.transformers.snowflake(payload.channel_id) : undefined,
|
||||
member: payload.member && guildId ? bot.transformers.member(bot, payload.member, guildId, user.id) : undefined,
|
||||
|
||||
// @ts-ignore figure this out
|
||||
data: payload.data
|
||||
? {
|
||||
componentType: payload.data.component_type,
|
||||
@@ -41,7 +40,6 @@ export function transformInteraction(bot: Bot, payload: DiscordInteraction) {
|
||||
resolved: payload.data.resolved
|
||||
? transformInteractionDataResolved(bot, payload.data.resolved, guildId)
|
||||
: undefined,
|
||||
// @ts-ignore TODO: figure this out
|
||||
options: payload.data.options,
|
||||
targetId: payload.data.target_id ? bot.transformers.snowflake(payload.data.target_id) : undefined,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user