import { PermissionFlags } from '@/api/discord';
import { AppConfig } from './types';

export const config: AppConfig = {
  name: 'VOTL Bot',
  icon:
    'https://cdn.fileeditor.dev/media/votl/logo.png',
  inviteUrl:
    `https://discord.com/oauth2/authorize?client_id=${process.env.BOT_CLIENT_ID}&permissions=8&integration_type=0&scope=bot+applications.commands`,
  guild: {
    //filter guilds that user has no permissions to manage it
    filter: (guild) => (Number(guild.permissions) & PermissionFlags.ADMINISTRATOR) !== 0,
  },
};
