Arguments
string
required
The Discord App Token
string
required
Discord Guild ID
string
required
The current active project
Example
Discord\Scripts\client\prism\api.py
Response
String
The ID of the specified Discord channel
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get the ID of a specified Discord channel.
discord = pcore.getPlugin('Discord')
token = discord.get_app_token()
guild_id = discord.get_current_guild_id()
current_project = discord.get_current_project()
channel_id = discord.get_channel_id(token=token, guild_id=guild_id, current_project=current_project)
print(channel_id)