summaryrefslogtreecommitdiff
path: root/views/guild.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-05-09 18:02:15 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-05-09 18:03:06 +0200
commit0ee8e0e5239e3f76911834da54d2c72a4a149804 (patch)
treefca810d542ffad451699379a8dc61067c7ea632b /views/guild.js
parent94adb2f9f182e50f6d60aadc70bb8bf8f74f2371 (diff)
downloaddiscordbot-0ee8e0e5239e3f76911834da54d2c72a4a149804.tar.gz
discordbot-0ee8e0e5239e3f76911834da54d2c72a4a149804.zip
error handling, migration to template
Diffstat (limited to 'views/guild.js')
-rw-r--r--views/guild.js11
1 files changed, 3 insertions, 8 deletions
diff --git a/views/guild.js b/views/guild.js
index a5eedef..23c2afe 100644
--- a/views/guild.js
+++ b/views/guild.js
@@ -24,16 +24,11 @@ module.exports = class extends View {
"", "vainsocial-guild-view")
.setDescription(await this.text(guild.members));
return embed;
- };
+ }
- async respond(guild) {
- if (guild == undefined) {
- this.response = await util.respond(this.msg,
- strings.notRegistered, this.response);
- return this.response;
- }
+ async respond(guild, extra="") {
this.response = await util.respond(this.msg,
await this.embed(guild), this.response);
return this.response;
- };
+ }
}