private RolePermissions VanillaGetRolePermissions(UInt64 RoleId)
        {
            if (!File.Exists($"./data/role-permissions/{RoleId}.json"))
            {
                CreateRolePermissions(RoleId);
            }

            return(RolePermissions.Deserialize(RoleId).Update(DefaultPermissions.Deserialize()));
        }
        private void VanillaSetRoleAdministrator(UInt64 RoleId, Boolean Administrator)
        {
            if (!File.Exists($"./data/role-permissions/{RoleId}.json"))
            {
                CreateRolePermissions(RoleId);
            }

            RolePermissions permissions = RolePermissions.Deserialize(RoleId).Update(DefaultPermissions.Deserialize());

            permissions.IsAdministrator = Administrator;
            RolePermissions.Serialize(permissions);
        }
        private RolePermissions VanillaApplyMappings(DiscordRole Role)
        {
            PermissionMapping mapping = PermissionMapping.Deserialize("complete");

            foreach (KeyValuePair <Int64, String[]> v in mapping.Mappings)
            {
                if (Role.CheckPermission((DSharpPlus.Permissions)v.Key) == PermissionLevel.Allowed)
                {
                    GrantRolePermissions(Role.Id, v.Value);
                }
            }

            return(RolePermissions.Deserialize(Role.Id));
        }
        private void VanillaGrantRolePermissions(UInt64 RoleId, String[] Permissions)
        {
            if (!File.Exists($"./data/role-permissions/{RoleId}.json"))
            {
                CreateRolePermissions(RoleId);
            }

            RolePermissions permissions = RolePermissions.Deserialize(RoleId).Update(DefaultPermissions.Deserialize());

            foreach (String v in Permissions)
            {
                foreach (String v1 in ParseWildcards(v))
                {
                    permissions[v1] = PermissionValue.Allowed;
                }
            }

            RolePermissions.Serialize(permissions);
        }
        private void VanillaUpdateRolePermissions(UInt64 RoleId)
        {
            RolePermissions permissions = RolePermissions.Deserialize(RoleId);

            RolePermissions.Serialize(permissions.Update(DefaultPermissions.Deserialize()));
        }