mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 03:18:17 +00:00
types(util): add case utility types (#683)
* types(util): add case utility types * Rename *ID to *Id
This commit is contained in:
@@ -5,10 +5,10 @@ export function handleInviteCreate(payload: DiscordPayload) {
|
||||
if (payload.t !== "INVITE_CREATE") return;
|
||||
//TODO: replace with tocamelcase
|
||||
const {
|
||||
channel_id: channelID,
|
||||
channel_id: channelId,
|
||||
created_at: createdAt,
|
||||
max_age: maxAge,
|
||||
guild_id: guildID,
|
||||
guild_id: guildId,
|
||||
target_user: targetUser,
|
||||
target_user_type: targetUserType,
|
||||
max_uses: maxUses,
|
||||
@@ -17,8 +17,8 @@ export function handleInviteCreate(payload: DiscordPayload) {
|
||||
|
||||
eventHandlers.inviteCreate?.({
|
||||
...rest,
|
||||
channelID,
|
||||
guildID,
|
||||
channelId,
|
||||
guildId,
|
||||
maxAge,
|
||||
targetUser,
|
||||
targetUserType,
|
||||
|
||||
Reference in New Issue
Block a user