Fix embeds for botinfo command

This commit is contained in:
SileNce5k 2023-12-07 13:49:42 +01:00
parent 7fac368e31
commit f3caf1b7ce
No known key found for this signature in database
GPG key ID: 961132EB78C8915F

View file

@ -1,4 +1,4 @@
const Discord = require('discord.js'); const {EmbedBuilder} = require('discord.js');
const getCreationDate = require('../../util/getCreationDate'); const getCreationDate = require('../../util/getCreationDate');
const getGuildCount = require('../../util/getGuildCount'); const getGuildCount = require('../../util/getGuildCount');
@ -9,7 +9,7 @@ module.exports = {
description: 'Shows information about the bot', description: 'Shows information about the bot',
execute({message, client, prefix}) { execute({message, client, prefix}) {
let guildCount = getGuildCount(client) let guildCount = getGuildCount(client)
const embed = new Discord.MessageEmbed() const embed = new EmbedBuilder()
.setColor(15780145) .setColor(15780145)
.setTitle("Information about bot") .setTitle("Information about bot")
.setTimestamp() .setTimestamp()