Skip to content

Commit

Permalink
minor tweak to /balise embed
Browse files Browse the repository at this point in the history
  • Loading branch information
BodomBeach committed May 16, 2024
1 parent 9a9fdb2 commit aa4ce76
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/commands/balise.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const invoke = async (interaction) => {

const image = await getScreenhot('table table tbody');
const embed = new EmbedBuilder()
.setTitle(`${interaction.user.username} a utilisé la commande **/balise**`)
.setDescription(`${interaction.user.username} a utilisé la commande **/balise**`)
.setImage(`attachment://dashboard.png`);

const attachment = new AttachmentBuilder(image, 'screenshot.png');
Expand Down
1 change: 1 addition & 0 deletions src/jobs/channelCleanup.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {archive, allowedCategories} from '../utils/archive.js';

export function channelCleanup(client) {
console.log('===== starting scheduled channel cleanup =====');
const guild = client.guilds.cache.get(process.env.GUILD_ID);
const categories = guild.channels.cache.filter(channel => allowedCategories.includes(channel.name))

Expand Down
1 change: 1 addition & 0 deletions src/jobs/serverStats.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { EmbedBuilder } from 'discord.js';

export async function serverStats(client) {
console.log('===== starting scheduled server stats update =====');
const guild = client.guilds.cache.get(process.env.GUILD_ID);

// fetch members first, otherwise guild.roles.cache.get('1232623387965132820').members.size will be empty
Expand Down

0 comments on commit aa4ce76

Please sign in to comment.