flowOf

inline fun <E : Event> EventDispatcher.flowOf(): Flow<E>
inline fun <E : Event> GatewayDiscordClient.flowOf(): Flow<E>

Returns a Flow of the specified event type.