Prettified Code!

This commit is contained in:
itohatweb
2021-05-21 15:55:49 +00:00
committed by GitHub Action
parent 71a20fb0f4
commit 179add27c9
271 changed files with 889 additions and 3067 deletions
+4 -11
View File
@@ -3,19 +3,12 @@ import { endpoints } from "../../util/constants.ts";
import { requireBotGuildPermissions } from "../../util/permissions.ts";
/** Edit the nickname of the bot in this guild */
export async function editBotNickname(
guildId: bigint,
nickname: string | null
) {
export async function editBotNickname(guildId: bigint, nickname: string | null) {
await requireBotGuildPermissions(guildId, ["CHANGE_NICKNAME"]);
const response = await rest.runMethod<{ nick: string }>(
"patch",
endpoints.USER_NICK(guildId),
{
nick: nickname,
}
);
const response = await rest.runMethod<{ nick: string }>("patch", endpoints.USER_NICK(guildId), {
nick: nickname,
});
return response.nick;
}