List all the roles in a server.

Retrieve all roles from a specific Discord server.

Run this query

To run this query, you can use the following command:

anyquery run list_all_the_roles_in_a_server <guild_id>

Arguments

Guild ID

The ID of the guild (server) to fetch roles from

Additional informations

Source code Author

Tip

You can limit the number of results returned by a query using the --limit flag. For example, to limit the results to 10 rows, run anyquery run --limit 10.