示例#1
0
        public async Task EnableCleanup()
        {
            Context.Configuration.CleanupEnabled = true;
            await _guildConfigService.SaveConfiguration(Context.Configuration);

            await ReplyAsync($"This guild is now enabled for automatic cleanup of the <@&{Context.Configuration.RoleId}> role.");
        }
示例#2
0
        public async Task ConfigureUserTypes(params UserType[] userTypes)
        {
            var appliedUserTypes = UserType.None;

            foreach (var userType in userTypes)
            {
                appliedUserTypes |= userType;
            }

            Context.Configuration.AllowedUserTypesFlag = appliedUserTypes;
            await _guildConfigService.SaveConfiguration(Context.Configuration);

            await ReplyAsync($"allowed user types are now set to {Context.Configuration.AllowedUserTypesFlag}");
        }