aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorPerry Fraser <[email protected]>2018-10-01 16:38:07 -0400
committerzeyla <[email protected]>2018-10-01 13:38:07 -0700
commit9865d9ccd727a7f6c5c9a6094b87af0f6353831b (patch)
treeb9d13d1ff517347da19d198b257481fffbbb68db /src/client
parentChange DOS line endings to UNIX line endings (diff)
downloadserenity-9865d9ccd727a7f6c5c9a6094b87af0f6353831b.tar.xz
serenity-9865d9ccd727a7f6c5c9a6094b87af0f6353831b.zip
A bunch of typo fixes (#404)
Diffstat (limited to 'src/client')
-rw-r--r--src/client/bridge/gateway/shard_runner_message.rs2
-rw-r--r--src/client/dispatch.rs2
-rw-r--r--src/client/event_handler.rs4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/client/bridge/gateway/shard_runner_message.rs b/src/client/bridge/gateway/shard_runner_message.rs
index f281d21..edb9b8a 100644
--- a/src/client/bridge/gateway/shard_runner_message.rs
+++ b/src/client/bridge/gateway/shard_runner_message.rs
@@ -41,7 +41,7 @@ pub enum ShardRunnerMessage {
/// Indicates that the client is to update the shard's presence's game.
SetGame(Option<Game>),
/// Indicates that the client is to update the shard's presence in its
- /// entirity.
+ /// entirety.
SetPresence(OnlineStatus, Option<Game>),
/// Indicates that the client is to update the shard's presence's status.
SetStatus(OnlineStatus),
diff --git a/src/client/dispatch.rs b/src/client/dispatch.rs
index 3e3bcfa..5f88c34 100644
--- a/src/client/dispatch.rs
+++ b/src/client/dispatch.rs
@@ -167,7 +167,7 @@ fn handle_event<H: EventHandler + Send + Sync + 'static>(
let context = context(data, runner_tx, shard_id);
// 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.
+ // This could potentially 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) => {
diff --git a/src/client/event_handler.rs b/src/client/event_handler.rs
index 32fdaa1..426cdda 100644
--- a/src/client/event_handler.rs
+++ b/src/client/event_handler.rs
@@ -217,12 +217,12 @@ pub trait EventHandler {
/// Provides the reaction's data.
fn reaction_add(&self, _ctx: Context, _add_reaction: Reaction) {}
- /// Dispatched when a reaction is dettached from a message.
+ /// Dispatched when a reaction is detached from a message.
///
/// Provides the reaction's data.
fn reaction_remove(&self, _ctx: Context, _removed_reaction: Reaction) {}
- /// Dispatched when all reactions of a message are dettached from a message.
+ /// Dispatched when all reactions of a message are detached from a message.
///
/// Provides the channel's id and the message's id.
fn reaction_remove_all(&self, _ctx: Context, _channel_id: ChannelId, _removed_from_message_id: MessageId) {}