mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-10 07:03:08 -04:00
add provisional avatar support
This commit is contained in:
parent
2161289223
commit
be2bf58b51
7 changed files with 31 additions and 13 deletions
|
@ -5,6 +5,7 @@ const { createEmbed } = require("#utils/embed");
|
|||
const { codeblock, iconPill, stringwrap, link } = require("#utils/markdown");
|
||||
const { editOrReply } = require("#utils/message");
|
||||
const { STATICS } = require("#utils/statics");
|
||||
const { getUserAvatar } = require("#utils/users");
|
||||
|
||||
// TODO: Turn this into a general purpose permissions constant
|
||||
const { Permissions } = require("detritus-client/lib/constants");
|
||||
|
@ -52,7 +53,7 @@ module.exports = {
|
|||
args.input = msg.content
|
||||
author = {
|
||||
name: msg.author.username,
|
||||
iconUrl: msg.author.avatarUrl + '?size=256',
|
||||
iconUrl: getUserAvatar(msg.author, 256),
|
||||
url: "https://discord.com/users/" + msg.author.id
|
||||
}
|
||||
msg = `${codeblock("ansi", [stringwrap(msg.content, 200)])}\n`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue