DiscordApp
discord.py
library
to interact with Discord servers.
This bot can respond to messages in specific channels and only reacts to
messages that mention the bot.
Parameters:
- channel_ids (Optional[List[int]]): A list of allowed channel IDs. If provided, the bot will only respond to messages in these channels.
- token (Optional[str]): The Discord bot token used for authentication.
init
- channel_ids (Optional[List[int]]): A list of allowed channel IDs. The bot will only respond to messages in these channels if provided. (default: :obj:
None
) - token (Optional[str]): The Discord bot token for authentication. If not provided, the token will be retrieved from the environment variable
DISCORD_TOKEN
. (default: :obj:None
) - client_id (str, optional): The client ID for Discord OAuth. (default: :obj:
None
) - client_secret (Optional[str]): The client secret for Discord OAuth. (default: :obj:
None
) - redirect_uri (str): The redirect URI for OAuth callbacks. (default: :obj:
None
) - installation_store (DiscordAsyncInstallationStore): The database stores all information of all installations. (default: :obj:
None
) - intents (discord.Intents): The Discord intents of this app. (default: :obj:
None
)