Skip to content

Commit 09bd6ef

Browse files
authored
Merge pull request #419 from aternosorg/serverinfo
/serverinfo
2 parents be5f315 + 46e42c8 commit 09bd6ef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/commands/utility/ServerInfoCommand.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ class ServerInfoCommand extends Command{
1010

1111
static description = 'Show the servers info';
1212

13+
static supportsSlashCommands = true;
14+
1315
async execute() {
14-
const guild = this.message.guild;
16+
const guild = this.source.getGuild();
1517

1618
let owner = await guild.fetchOwner();
1719

@@ -33,7 +35,7 @@ class ServerInfoCommand extends Command{
3335
.setTitle(`Info of ${guild.name}`)
3436
.setColor(util.color.red)
3537
.setThumbnail(guild.iconURL({dynamic: true, size: 2048}))
36-
.setFooter(`Command executed by ${util.escapeFormatting(this.message.author.tag)}`)
38+
.setFooter(`Command executed by ${util.escapeFormatting(this.source.getUser().tag)}`)
3739
.setTimestamp()
3840
.addFields(
3941
/** @type {any} */ {name: '__**Generic**__', value: generic, inline: true},

0 commit comments

Comments
 (0)