mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 10:02:05 +02:00
Use globalName
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user