¶ NOTICE: All information contained herein is, and remains the property of TechnoCore.
¶ The intellectual and technical concepts contained herein are proprietary to TechnoCore
This object is used to send notifications to a Discord channel.
To use this object, you need to add a discord section to your config.yaml file with a webhook_url.
- Open Discord: Launch the Discord application or go to the Discord web client.
- Select a Server and Channel: Navigate to the server and text channel where you want the notifications to appear.
- Channel Settings: Hover over the channel name, then click the "Edit Channel" gear icon that appears.
- Integrations: In the channel settings menu, click on "Integrations" from the left sidebar.
- Create Webhook: Click on the "Create Webhook" button.
- Configure Webhook:
- Name: Give your webhook a descriptive name (e.g., "Axion Notifications").
- Channel: Ensure the correct channel is selected.
- Image: Optionally, upload an image for the webhook's avatar.
- Copy Webhook URL: Click the "Copy Webhook URL" button.
- Save Changes: Click "Save Changes."
Once you have copied the URL, you can replace YOUR_DISCORD_WEBHOOK_URL_HERE in your config.yaml file with the copied URL.
This method sends a message to the Discord channel.
message: The message to send.
import ObjNotifyDiscord
discord = ObjNotifyDiscord.ObjNotifyDiscord()
discord.transmit_message("Hello from Axion!")