tools.discord_server_info module

Query Discord server information (info, channels, roles, members).

async tools.discord_server_info.run(action, server_id, limit=50, ctx=None)[source]

Execute this tool and return the result.

Parameters:
  • action (str) – The action value.

  • server_id (str) – The server id value.

  • limit (int) – Maximum number of items.

  • ctx (ToolContext | None) – Tool execution context providing access to bot internals.

Returns:

Result string.

Return type:

str