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:
@@ -6,7 +6,7 @@ import Locale from '../providers/Locale';
|
||||
|
||||
export async function getGuildLocale(id: Snowflake): Promise<I18n> {
|
||||
const cachedGuild = await Cache.getCachedGuild(id);
|
||||
if (!cachedGuild) return Locale.getLocaleProvider("en");
|
||||
if (!cachedGuild) return Locale.getLocaleProvider('en');
|
||||
|
||||
const LocaleProvider = Locale.getLocaleProvider(cachedGuild.locale);
|
||||
return LocaleProvider;
|
||||
@@ -14,4 +14,4 @@ export async function getGuildLocale(id: Snowflake): Promise<I18n> {
|
||||
|
||||
export default {
|
||||
getGuildLocale
|
||||
}
|
||||
};
|
||||
|
||||
@@ -3,9 +3,7 @@ import Environment from '../providers/Environment';
|
||||
|
||||
class Users {
|
||||
public static isDeveloper(user: User | Snowflake) {
|
||||
|
||||
if(!Environment.get().DEVELOPERS)
|
||||
return false;
|
||||
if (!Environment.get().DEVELOPERS) return false;
|
||||
|
||||
const developers: Snowflake[] = Environment.get().DEVELOPER_IDS.split(',');
|
||||
let userID;
|
||||
|
||||
Reference in New Issue
Block a user