'Is there a way to allow your bot to follow announcement channels for other servers through a command?
My bot uses discord.py, is there a way to code it to allow it to automatically follow an announcement channel for other servers to your server through a command?
Solution 1:[1]
Im not sure if this is what your asking, but you can check if a message is the message that a channel is following another, by doing message.type == discord.MessageType.channel_follow_add
Here are some useful links:
MessageType.channel_follow_add
You cant follow channels with bots, if this is what you mean instead.
Solution 2:[2]
I've latterly been tiring to figure this same issue. I've looked everywhere and could find nothing on this topic. I finally asked the owner of DYNO bot how he did it. The code you're looking for is this following I believe.
announcementChannel = client.get_channel(962525150962647044)
await announcementChannel.follow(destination = addToChannel, reason=None)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Nite Block |
Solution 2 | Luke Medeiros |