tools.discord_invite module

Create a Discord server invite link.

async tools.discord_invite.run(channel_id=None, max_age=86400, max_uses=0, temporary=False, ctx=None)[source]

Execute this tool and return the result.

Parameters:
  • channel_id (str | None) – Discord/Matrix channel identifier.

  • max_age (int) – The max age value.

  • max_uses (int) – The max uses value.

  • temporary (bool) – The temporary value.

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

Returns:

Result string.

Return type:

str