Skip to content

wc.fetchGuildRole()

paige edited this page Aug 28, 2023 · 3 revisions
  • 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)
Clone this wiki locally