Web

QuerySortBy

enum daf.web.QuerySortBy(value)

Enumerated options that can be passed to the sort_by parameter of daf.web.GuildDISCOVERY.

Valid values are as follows:

TEXT_RELEVANCY = <QuerySortBy.TEXT_RELEVANCY: 0>
TOP = <QuerySortBy.TOP: 1>
RECENTLY_CREATED = <QuerySortBy.RECENTLY_CREATED: 2>
TOP_VOTED = <QuerySortBy.TOP_VOTED: 3>
TOTAL_USERS = <QuerySortBy.TOTAL_USERS: 4>

QueryMembers

enum daf.web.QueryMembers(value)

Enumerated options that can be passed to the total_members parameter of daf.web.GuildDISCOVERY.

Valid values are as follows:

ALL = <QueryMembers.ALL: 0>
SUB_100 = <QueryMembers.SUB_100: 1>
B100_1k = <QueryMembers.B100_1k: 2>
B1k_10k = <QueryMembers.B1k_10k: 3>
ABV_10k = <QueryMembers.ABV_10k: 4>

GuildDISCOVERY

class daf.web.GuildDISCOVERY(prompt: str, sort_by: QuerySortBy | None = QuerySortBy.TOP, total_members: QueryMembers | None = QueryMembers.ALL, limit: int | None = 15)

Warning

This is temporarily disabled (since v4.1) until a new guild provider is found.

Client used for searching servers. To be used with daf.guild.AutoGUILD.

Parameters:
  • prompt (str) – Query parameter for server search.

  • sort_by (Optional[QuerySortBy]) – Query parameter for sorting method for results.

  • total_members (Optional[QueryMembers]) – Query parameter for member limit.

  • limit (Optional[int]) – The maximum amount of servers to query. Defaults to 15 servers.

async initialize(parent: Any)

Initializes guild discovery session.