diff options
| author | acdenisSK <[email protected]> | 2018-08-01 21:30:56 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2018-08-01 21:33:19 +0200 |
| commit | 97d9378d338607b8f6f566242f8563956649fa30 (patch) | |
| tree | 10e5e3a08acc0dca7cd486920bd1053c1cb88430 /src | |
| parent | Add From impls for Game, generify Game params (diff) | |
| download | serenity-97d9378d338607b8f6f566242f8563956649fa30.tar.xz serenity-97d9378d338607b8f6f566242f8563956649fa30.zip | |
De-cringe a comment
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/dispatch.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/dispatch.rs b/src/client/dispatch.rs index 04bd8c9..410ca76 100644 --- a/src/client/dispatch.rs +++ b/src/client/dispatch.rs @@ -177,9 +177,9 @@ fn handle_event<H: EventHandler + Send + Sync + 'static>( let context = context(data, runner_tx, shard_id); - // This different channel_create dispatching is only due to the fact that - // each time the bot receives a dm, this event is also fired. - // So in short, only exists to reduce unnecessary clutter. + // Discord sends both a MessageCreate and a ChannelCreate upon a new message in a private channel. + // This could potentionally be annoying to handle when otherwise wanting to normally take care of a new channel. + // So therefore, private channels are dispatched to their own handler code. match event.channel { Channel::Private(channel) => { let event_handler = Arc::clone(event_handler); |