Fixed #257 Can't change nickname

This commit is contained in:
Intevel ツ
2021-08-13 12:03:54 +02:00
parent ce055e4d72
commit b59b5f2a4b
3 changed files with 65 additions and 11170 deletions
+1
View File
@@ -196,6 +196,7 @@ export async function removeRole(user_id: string, guild_id: string, role_id: str
export async function changeNickname(user_id: string, guild_id: string, nickname: string) {
const user = await getPublicUser(user_id);
var memberObj = await MemberModel.findOneAndUpdate(
{
id: user_id,