mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-13 18:59:19 +00:00
Formatted code
This commit is contained in:
@@ -60,7 +60,7 @@ export async function checkBotPermissionsInGuild({
|
||||
locale?: I18n;
|
||||
}): Promise<boolean> {
|
||||
const member = guild.members.me;
|
||||
if(!member) return false;
|
||||
if (!member) return false;
|
||||
|
||||
const hasPermissions = member.permissions.has(permissions);
|
||||
|
||||
@@ -86,7 +86,7 @@ export async function checkBotPermissionsInChannel({
|
||||
locale?: I18n;
|
||||
}): Promise<boolean> {
|
||||
const member = guild.members.me;
|
||||
if(!member) return false;
|
||||
if (!member) return false;
|
||||
|
||||
const hasPermissions = member.permissionsIn(channel).has(permissions);
|
||||
|
||||
@@ -96,4 +96,4 @@ export async function checkBotPermissionsInChannel({
|
||||
});
|
||||
|
||||
return hasPermissions;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user