mirror of
https://github.com/status-im/sourcecred.git
synced 2025-01-24 11:29:44 +00:00
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:
parent
e3d2deccb5
commit
c755216ebd
@ -83,7 +83,6 @@ export class Fetcher {
|
|||||||
bot: x.user.bot || x.user.system || false,
|
bot: x.user.bot || x.user.system || false,
|
||||||
},
|
},
|
||||||
nick: x.nick || null,
|
nick: x.nick || null,
|
||||||
roles: x.roles,
|
|
||||||
}));
|
}));
|
||||||
const hasNextPage = results.length === membersLimit;
|
const hasNextPage = results.length === membersLimit;
|
||||||
const endCursor =
|
const endCursor =
|
||||||
|
@ -80,7 +80,6 @@ describe("plugins/discord/fetcher", () => {
|
|||||||
bot: true,
|
bot: true,
|
||||||
},
|
},
|
||||||
nick: "nickname",
|
nick: "nickname",
|
||||||
roles: ["test role"],
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const options = () => ({
|
const options = () => ({
|
||||||
|
@ -74,7 +74,6 @@ export type User = {|
|
|||||||
export type GuildMember = {|
|
export type GuildMember = {|
|
||||||
+user: User,
|
+user: User,
|
||||||
+nick: string | null,
|
+nick: string | null,
|
||||||
+roles: $ReadOnlyArray<Snowflake>,
|
|
||||||
|};
|
|};
|
||||||
|
|
||||||
// From the Discord docs: "emoji takes the form of name:id for
|
// From the Discord docs: "emoji takes the form of name:id for
|
||||||
|
Loading…
x
Reference in New Issue
Block a user