Member Of User (Expression) — DiSky

Addon: DiSky · Category: Expression · Since: 5.0.0-b1

Syntax

[the] member of %types.user% in [the] [guild] %types.guild%

Description

The member a user is in a guild: the same person, with the guild-side data (nickname, roles, join date...). Returns nothing when the user is not in that guild. It reads the member cache, which depends on the bot's member cache policy. With 'await', a member missing from the cache is fetched from Discord, and a user who is not in the guild is a readable error.

Examples

set {_member} to member of event-user in event-guild
await set {_member} to the member of {_user} in guild {_guild}

View source