Protected response
response: { events: { emit: <T>(t: T, d: DiscordAPIEvents[T]) => void }; op: { emit: <T>(op: T, d: DiscordAPIOP[T]["d"]) => void } } = ...
Type declaration
-
events: { emit: <T>(t: T, d: DiscordAPIEvents[T]) => void }
-
emit: <T>(t: T, d: DiscordAPIEvents[T]) => void
-
- <T>(t: T, d: DiscordAPIEvents[T]): void
-
Type parameters
-
T: "READY" | "GUILD_CREATE" | "CHANNEL_CREATE" | "MESSAGE_CREATE"
Parameters
-
t: T
-
d: DiscordAPIEvents[T]
Returns void
-
op: { emit: <T>(op: T, d: DiscordAPIOP[T]["d"]) => void }
-
emit: <T>(op: T, d: DiscordAPIOP[T]["d"]) => void
-
- <T>(op: T, d: DiscordAPIOP[T]["d"]): void
-
Type parameters
-
T: 2 | 1 | 3 | 4 | 6 | 8 | 9 | 10
Parameters
-
op: T
-
d: DiscordAPIOP[T]["d"]
Returns void