Skip to content

Commit 60de957

Browse files
authored
Merge pull request #47 from sustained/feat-coc
fix: CoC
2 parents 80f818d + 0555cd6 commit 60de957

File tree

1 file changed

+10
-1
lines changed
  • src/commands/miscellaneous

1 file changed

+10
-1
lines changed

src/commands/miscellaneous/coc.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,23 @@ module.exports = class MiscCodeCommand extends Command {
2323
}
2424

2525
async run(msg) {
26-
return respondWithPaginatedEmbed(msg, null, coc)
26+
return respondWithPaginatedEmbed(
27+
msg,
28+
null,
29+
coc.map(item => this.buildResponseEmbed(msg, item))
30+
)
2731
}
2832

2933
buildResponseEmbed(msg, entry) {
3034
return new RichEmbed()
3135
.setColor(DEFAULT_EMBED_COLOUR)
3236
.setTitle(`Code of Conduct - ${entry.title}`)
3337
.setURL('https://vuejs.org/coc/')
38+
.setThumbnail('attachment://vue.png')
39+
.attachFile({
40+
attachment: 'assets/images/icons/vue.png',
41+
name: 'vue.png',
42+
})
3443
.setDescription(entry.description)
3544
}
3645
}

0 commit comments

Comments
 (0)