Discord: remove roles from GuildMember type (#1733)

Removes `roles` as a property of `GuildMember` because the use
case is not clear at this point in time.

Test Plan: Yarn Test passes. `git grep -i "roles"` also returns an
empty result.
This commit is contained in:
Brian Litwin 2020-03-31 08:40:14 -04:00 committed by GitHub
parent e3d2deccb5
commit c755216ebd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 3 deletions

View File

@ -83,7 +83,6 @@ export class Fetcher {
bot: x.user.bot || x.user.system || false,
},
nick: x.nick || null,
roles: x.roles,
}));
const hasNextPage = results.length === membersLimit;
const endCursor =

View File

@ -80,7 +80,6 @@ describe("plugins/discord/fetcher", () => {
bot: true,
},
nick: "nickname",
roles: ["test role"],
});
const options = () => ({

View File

@ -74,7 +74,6 @@ export type User = {|
export type GuildMember = {|
+user: User,
+nick: string | null,
+roles: $ReadOnlyArray<Snowflake>,
|};
// From the Discord docs: "emoji takes the form of name:id for