Formatted code

This commit is contained in:
2023-03-05 14:46:25 +07:00
parent 89744dcb10
commit b44e583834
47 changed files with 1240 additions and 1162 deletions
+2 -2
View File
@@ -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
}
};
+1 -3
View File
@@ -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;