Add version to help embed footer
This commit is contained in:
parent
7ed4318863
commit
63172f25f3
@ -26,6 +26,7 @@ const axios = require('axios');
|
|||||||
// Various imports from other files
|
// Various imports from other files
|
||||||
const config = require('./config.json');
|
const config = require('./config.json');
|
||||||
const strings = require('./strings.json');
|
const strings = require('./strings.json');
|
||||||
|
const appVersion = require('./package.json').version;
|
||||||
const slashCommandFiles = fs.readdirSync('./slash-commands/').filter(file => file.endsWith('.js'));
|
const slashCommandFiles = fs.readdirSync('./slash-commands/').filter(file => file.endsWith('.js'));
|
||||||
const dotCommandFiles = fs.readdirSync('./dot-commands/').filter(file => file.endsWith('.js'));
|
const dotCommandFiles = fs.readdirSync('./dot-commands/').filter(file => file.endsWith('.js'));
|
||||||
const customEmbeds = require('./CustomModules/Embeds.js');
|
const customEmbeds = require('./CustomModules/Embeds.js');
|
||||||
@ -182,7 +183,8 @@ const functions = {
|
|||||||
const helpEmbed = new Discord.MessageEmbed()
|
const helpEmbed = new Discord.MessageEmbed()
|
||||||
.setColor('BLUE')
|
.setColor('BLUE')
|
||||||
.setAuthor({name: 'Help Page'})
|
.setAuthor({name: 'Help Page'})
|
||||||
.setThumbnail(strings.urls.avatar);
|
.setThumbnail(strings.urls.avatar)
|
||||||
|
.setFooter(`v${appVersion}`);
|
||||||
|
|
||||||
// Construct the Slash Commands help
|
// Construct the Slash Commands help
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user