We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 80f818d + 0555cd6 commit 60de957Copy full SHA for 60de957
src/commands/miscellaneous/coc.js
@@ -23,14 +23,23 @@ module.exports = class MiscCodeCommand extends Command {
23
}
24
25
async run(msg) {
26
- return respondWithPaginatedEmbed(msg, null, coc)
+ return respondWithPaginatedEmbed(
27
+ msg,
28
+ null,
29
+ coc.map(item => this.buildResponseEmbed(msg, item))
30
+ )
31
32
33
buildResponseEmbed(msg, entry) {
34
return new RichEmbed()
35
.setColor(DEFAULT_EMBED_COLOUR)
36
.setTitle(`Code of Conduct - ${entry.title}`)
37
.setURL('https://vuejs.org/coc/')
38
+ .setThumbnail('attachment://vue.png')
39
+ .attachFile({
40
+ attachment: 'assets/images/icons/vue.png',
41
+ name: 'vue.png',
42
+ })
43
.setDescription(entry.description)
44
45
0 commit comments