aboutsummaryrefslogtreecommitdiff
path: root/src/framework
diff options
context:
space:
mode:
authorLakelezz <[email protected]>2017-10-23 21:10:47 +0200
committerZeyla Hellyer <[email protected]>2017-10-23 12:10:47 -0700
commite02d5fb8171b11214e1502c6754fef1972bbf1b9 (patch)
tree180de3f7201d36d2a81a8d85d9d4870d82efddc6 /src/framework
parentUpdate dependencies (diff)
downloadserenity-e02d5fb8171b11214e1502c6754fef1972bbf1b9.tar.xz
serenity-e02d5fb8171b11214e1502c6754fef1972bbf1b9.zip
Properly update emojis, fix shard retries, fix cs
* If a guild's emojis are being altered, Serenity will straight up use the new `HashMap` instead of just extending. If `connect()` returns an `Err`, it will retry connecting. Cleaned up `help_command.rs`.
Diffstat (limited to 'src/framework')
-rw-r--r--src/framework/standard/help_commands.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/framework/standard/help_commands.rs b/src/framework/standard/help_commands.rs
index 5c1c58f..6b85239 100644
--- a/src/framework/standard/help_commands.rs
+++ b/src/framework/standard/help_commands.rs
@@ -113,8 +113,7 @@ pub fn with_embeds(_: &mut Context,
CommandOrAlias::Command(ref cmd) => {
if has_all_requirements(cmd, msg) {
found = Some((command_name, cmd));
- }
- else {
+ } else {
break;
}
},
@@ -125,8 +124,7 @@ pub fn with_embeds(_: &mut Context,
CommandOrAlias::Command(ref cmd) => {
if has_all_requirements(cmd, msg) {
found = Some((name, cmd));
- }
- else {
+ } else {
break;
}
},