mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
fix: bump deps
This commit is contained in:
@@ -11,10 +11,17 @@ export async function getInvite(bot: Bot, inviteCode: string, options?: GetInvit
|
||||
});
|
||||
|
||||
return {
|
||||
uses: result.uses,
|
||||
maxUses: result.max_uses,
|
||||
maxAge: result.max_age,
|
||||
temporary: result.temporary,
|
||||
createdAt: result.created_at,
|
||||
code: result.code,
|
||||
guildId: result.guild?.id ? bot.transformers.snowflake(result.guild.id) : undefined,
|
||||
channelId: result.channel?.id ? bot.transformers.snowflake(result.channel.id) : undefined,
|
||||
inviter: result.inviter ? bot.transformers.user(bot, result.inviter) : undefined,
|
||||
targetType: result.target_type,
|
||||
targetUser: result.target_user ? bot.transformers.user(bot, result.target_user) : undefined,
|
||||
targetApplicationId: result.target_application?.id
|
||||
? bot.transformers.snowflake(result.target_application.id)
|
||||
: undefined,
|
||||
approximatePresenceCount: result.approximate_presence_count,
|
||||
approximateMemberCount: result.approximate_member_count,
|
||||
expiresAt: result.expires_at ? Date.parse(result.expires_at) : undefined,
|
||||
};
|
||||
}
|
||||
|
||||
+2
-2
@@ -6,5 +6,5 @@ export {
|
||||
assertThrows,
|
||||
assertThrowsAsync
|
||||
} from "https://deno.land/std@0.115.1/testing/asserts.ts";
|
||||
export * from "https://deno.land/x/discordeno_cache_plugin@0.0.19/mod.ts";
|
||||
export * from "https://deno.land/x/discordeno_permissions_plugin@0.0.13/mod.ts";
|
||||
export * from "https://deno.land/x/discordeno_cache_plugin@0.0.20/mod.ts";
|
||||
export * from "https://deno.land/x/discordeno_permissions_plugin@0.0.14/mod.ts";
|
||||
|
||||
Reference in New Issue
Block a user