diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-05-09 18:02:15 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-05-09 18:03:06 +0200 |
| commit | 0ee8e0e5239e3f76911834da54d2c72a4a149804 (patch) | |
| tree | fca810d542ffad451699379a8dc61067c7ea632b /views/guild.js | |
| parent | 94adb2f9f182e50f6d60aadc70bb8bf8f74f2371 (diff) | |
| download | discordbot-0ee8e0e5239e3f76911834da54d2c72a4a149804.tar.gz discordbot-0ee8e0e5239e3f76911834da54d2c72a4a149804.zip | |
error handling, migration to template
Diffstat (limited to 'views/guild.js')
| -rw-r--r-- | views/guild.js | 11 |
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; - }; + } } |
