wc.fetchGuildRole() - shysolocup/willclient GitHub Wiki

  • Description: Fetches a guild role by ID or mention

Parameters

  • ID String: Role ID or mention to fetch
  • ?Guild Guild: Guild to fetch the user from (defaults to the guild it was used in)

Setup

await wc.fetchGuildRole("Role ID")

await wc.fetchGuildRole("Role ID", Guild)

await wc.fetchGuildRole("<@&Role ID>")

await wc.fetchGuildRole("<@&Role ID>", Guild)
⚠️ **GitHub.com Fallback** ⚠️