Search

Search members or channels

Changed on

Searches the server's members or channels by name. Useful for turning a name into an ID before adding an ignore entry.

get/servers/{guild_id}/search/{structure}

Request

Path parameters

guild_idstring required
Example:301655085954367490

The server's ID. Must be the server the token was created for.

structure'members' | 'channels' required

What to search.

Query parameters

querystring required

The text to search for.

bot'pro'

Set to pro to act on the Quark Pro bot's configuration. Leave out for the main Quark bot.

Response

The matches. Each has at least an id.

idstring

Changes

    • breaking

      added the new required query request parameter query

    • breaking

      the path request parameter structure was restricted to a list of enum values

    • breaking

      added the pattern ^\d{17,20}$ to the path request parameter guild_id

    • info

      api operation id search was added

    • info

      added the new optional query request parameter bot

    • info

      added the new enum value channels to the path request parameter structure

    • info

      added the new enum value members to the path request parameter structure

    • info

      added the media type application/json for the response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      endpoint added