From dab7a8ef2aefbafac6e14027ea0dd05af530541a Mon Sep 17 00:00:00 2001 From: acdenisSK Date: Wed, 1 Aug 2018 21:30:56 +0200 Subject: De-cringe a comment --- src/client/dispatch.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/client/dispatch.rs b/src/client/dispatch.rs index f7326bd..1cf513f 100644 --- a/src/client/dispatch.rs +++ b/src/client/dispatch.rs @@ -178,9 +178,9 @@ fn handle_event( 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); -- cgit v1.2.3