solara-testing-beta
Version:
A modern, customizable, and lightweight Discord framework.
13 lines • 420 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
name: 'authorAvatar',
execute: async (ctx) => {
const user = ctx.interaction?.user ?? ctx.message?.author;
if (!user) {
throw new Error('Cannot determine command author.');
}
return user.displayAvatarURL({ size: 4096 });
},
};
//# sourceMappingURL=authorAvatar.js.map