types(util): add case utility types (#683)

* types(util): add case utility types

* Rename *ID to *Id
This commit is contained in:
ayntee
2021-03-23 19:04:46 +04:00
committed by GitHub
parent 6ff4654686
commit 10cb9d7eb9
10 changed files with 161 additions and 48 deletions
+4 -4
View File
@@ -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,