Very simple example to send Discord messages through webhooks in golang.
Is possibly define a list of webhooks and use one of this by a prefix channel ID or alias defined. See discordwh.conf-example
for details.
Packages used:
discordwh [-u username] [-a avatar-url] [--dry-run] channel "message"
- username Username used for message.
- avatar-url Avatar image URL.
- channel Full or partial channel ID, alias (configured) or channel URL.
- message Text of message.
- dry-run Use this parameter to perform a trial run without send the message.