async function editBotNickname(
  guildId,
  nickname,
) {
  await requireBotGuildPermissions(guildId, [
    "CHANGE_NICKNAME",
  ]);
  const response = await rest.runMethod("patch", endpoints.USER_NICK(guildId), {
    nick: nickname,
  });
  return response.nick;
}
/** Edit the nickname of the bot in this guild */
Edit the nickname of the bot in this guild
Edit the nickname of the bot in this guild
async function editBotNickname(
  guildId,
  nickname,
) {
  await requireBotGuildPermissions(guildId, [
    "CHANGE_NICKNAME",
  ]);
  const response = await rest.runMethod("patch", endpoints.USER_NICK(guildId), {
    nick: nickname,
  });
  return response.nick;
}
async function editBotNickname ( guildId , nickname , ) { await requireBotGuildPermissions ( guildId , [ "CHANGE_NICKNAME" , ] ) ; const response = await rest . runMethod ( "patch" , endpoints . USER_NICK ( guildId ) , { nick : nickname , } ) ; return response . nick ; }
Edit the nickname of the bot in this guild
Edit the nickname of the bot in this guild