mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 10:45:27 +00:00
fixed /pfp and /nick
This commit is contained in:
parent
69e7459939
commit
79c5fcab71
|
@ -53,7 +53,7 @@ async function clearAvatar(member: Member) {
|
|||
await axios.patch(
|
||||
`${member.client.apiURL}/servers/${member.server!._id}/members/${member._id.user}`,
|
||||
{
|
||||
remove: "Avatar",
|
||||
remove: [ "Avatar" ],
|
||||
},
|
||||
{
|
||||
headers: {
|
|
@ -47,7 +47,7 @@ async function setNick(member: Member, newName: string|null) {
|
|||
`${member.client.apiURL}/servers/${member.server!._id}/members/${member._id.user}`,
|
||||
{
|
||||
nickname: newName || undefined,
|
||||
remove: !newName ? "Nickname" : undefined,
|
||||
remove: !newName ? [ "Nickname" ] : undefined,
|
||||
},
|
||||
{
|
||||
headers: {
|
||||
|
|
Loading…
Reference in a new issue