Skip to content

Commit

Permalink
Merge gateway event handling into a single file
Browse files Browse the repository at this point in the history
Less tab juggling in the text editor, while remaining easier to
navigate. Less import churn too.
  • Loading branch information
slice committed Dec 23, 2023
1 parent ba6e3b5 commit 3e6c951
Show file tree
Hide file tree
Showing 10 changed files with 454 additions and 503 deletions.
2 changes: 1 addition & 1 deletion src/network-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import type { DiscordEmoji, DiscordMessage, DiscordReactionDetails, DiscordScien
import _emojis from './resources/emojis.json'
import _emojiShortcuts from './resources/shortcuts.json'
import type { GatewayConnectionOptions, GatewayMessage } from './websocket/types'
import { attachReadyHandlers, attachChannelHandlers, attachGuildHandlers, attachReactionHandlers, attachMessageHandlers, attachRelationshipHandlers, attachRecipientHandlers } from './websocket/events/handlers'
import { attachReadyHandlers, attachChannelHandlers, attachGuildHandlers, attachReactionHandlers, attachMessageHandlers, attachRelationshipHandlers, attachRecipientHandlers } from './websocket/event-handlers'

const API_VERSION = 9
const API_ENDPOINT = `https://discord.com/api/v${API_VERSION}`
Expand Down
Loading

0 comments on commit 3e6c951

Please sign in to comment.