Use globalName

This commit is contained in:
lilyissillyyy
2025-09-18 16:11:31 -04:00
parent 4a8aa67a72
commit 46e7a9e244
21 changed files with 48 additions and 36 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ module.exports = class EjectCommand extends Command {
const avatar = await loadImage(body);
const random = MersenneTwister19937.seed(user.id);
const imposter = bool()(random);
const text = `${user.username} was${imposter ? ' ' : ' not '}An Imposter.`;
const text = `${user.globalName || user.username} was${imposter ? ' ' : ' not '}An Imposter.`;
const encoder = new GifEncoder(320, 180);
const stream = encoder.createReadStream();
const canvas = createCanvas(320, 180);