mirror of
https://github.com/danbulant/Shasha
synced 2026-06-10 01:51:10 +00:00
hm
This commit is contained in:
parent
44e099f530
commit
cd3985547c
3 changed files with 9 additions and 8 deletions
|
|
@ -28,10 +28,10 @@ module.exports = class profile extends commando.Command {
|
||||||
const MEM = msg.guild.member(TM),
|
const MEM = msg.guild.member(TM),
|
||||||
emb = defaultImageEmbed(msg, null, `\`${TM.tag}\`'s Profile`);
|
emb = defaultImageEmbed(msg, null, `\`${TM.tag}\`'s Profile`);
|
||||||
emb
|
emb
|
||||||
.setThumbnail(TM.displayAvatarURL({format: "png", size: 4096, dynamic: true}))
|
.setThumbnail(TM.displayAvatarURL({ format: "png", size: 4096, dynamic: true }))
|
||||||
.addField("Registered", TM.createdAt.toUTCString().slice(0, -4), true)
|
.addField("Registered", TM.createdAt.toUTCString().slice(0, -4), true)
|
||||||
.addField("ID", TM.id, true);
|
.addField("ID", TM.id, true);
|
||||||
if (msg.author.description) {
|
if (TM.description) {
|
||||||
emb.setDescription(TM.description);
|
emb.setDescription(TM.description);
|
||||||
}
|
}
|
||||||
if (MEM) {
|
if (MEM) {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ module.exports = async (msg) => {
|
||||||
let check = false;
|
let check = false;
|
||||||
if (msg.channel.id === msg.guild.eventChannels?.mesDel?.channel && msg.author ? msg.author !== msg.client.user : false && ignored === false) check = true;
|
if (msg.channel.id === msg.guild.eventChannels?.mesDel?.channel && msg.author ? msg.author !== msg.client.user : false && ignored === false) check = true;
|
||||||
if (msg.guild.eventChannels?.mesDel?.channel !== msg.channel.id && ignored === false || check) {
|
if (msg.guild.eventChannels?.mesDel?.channel !== msg.channel.id && ignored === false || check) {
|
||||||
const log = getChannel(msg, msg.guild.eventChannels.mesDel.channel);
|
const log = getChannel(msg, msg.guild.eventChannels.mesDel?.channel);
|
||||||
if (!log || !msg.author) return;
|
if (!log || !msg.author) return;
|
||||||
const emb = defaultEventLogEmbed(msg.guild);
|
const emb = defaultEventLogEmbed(msg.guild);
|
||||||
emb.setColor(getColor("yellow"))
|
emb.setColor(getColor("yellow"))
|
||||||
|
|
|
||||||
|
|
@ -478,6 +478,7 @@ function getUser(msg, key) {
|
||||||
const use = cleanMentionID(key);
|
const use = cleanMentionID(key);
|
||||||
let u;
|
let u;
|
||||||
if (/^\d{17,19}$/.test(use)) u = msg.client.users.cache.get(use);
|
if (/^\d{17,19}$/.test(use)) u = msg.client.users.cache.get(use);
|
||||||
|
console.log(u);
|
||||||
if (!u) u = getMember(msg.guild, use)?.[0].user;
|
if (!u) u = getMember(msg.guild, use)?.[0].user;
|
||||||
return u;
|
return u;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue