diff --git a/src/serviceProviders/discord.js b/src/serviceProviders/discord.js index f15f86c..0eec06a 100644 --- a/src/serviceProviders/discord.js +++ b/src/serviceProviders/discord.js @@ -62,12 +62,20 @@ export function processURI (uri) { response: { format: E.ProofFormat.JSON }, - target: [{ - format: E.ClaimFormat.FINGERPRINT, - encoding: E.EntityEncodingFormat.PLAIN, - relation: E.ClaimRelation.EQUALS, - path: ['guild', 'description'] - }] + target: [ + { + format: E.ClaimFormat.URI, + encoding: E.EntityEncodingFormat.PLAIN, + relation: E.ClaimRelation.CONTAINS, + path: ['guild', 'description'] + }, + { + format: E.ClaimFormat.URI, + encoding: E.EntityEncodingFormat.PLAIN, + relation: E.ClaimRelation.CONTAINS, + path: ['guild', 'name'] + } + ] } }) } @@ -108,7 +116,7 @@ export const tests = [ { uri: 'https://discord.com/invite/', shouldMatch: false - } + }, { uri: 'https://discord.gg/', shouldMatch: false