I am using a Webhook to integrate Discord with GitHub for sending messages when a repository has been pushed to. However, I want the webhook to automatically ping a certain role (I have an #Updates role in the server) whenever this happens.
Is there are way to ping a role or even add text to a Discord GitHub Webhook? If not, is there a bot or other service that pings a certain role whenever a message is sent in a certain channel?
Any help is appreciated. Thanks in advance!
Related
I am new to creating a discord bot. I hope you can all give me a good solution to my problem.
I tried to create a bot for a company's server and followed a free guide. I had one problem when adding the bot to the server.
I got a message that the authorization succeeded but I cannot find the bot on the server. The guide clearly mentioned that I can find an offline bot. So I created my own discord server and tried again. OMG, it went well.
What's the problem?
Should I change the discord server setting? If yes, which option?
I think that the server settings are done in the way that the bot does not have a permissions to be in the channel you are trying to find it in. If you have admin permissions take a look into User management in server settings if the bot did or did not join and if it did, give it some permissions so that it has an access to the channel you want to see it in.
(On the right panel you see member of the channel you are currently clicked onto not the entire server.)
How can I make a discord bot have no status like not be in online, idle, invisible, do not disturb just no status some bots have that and I'm curious how its done my bots also in discord.js
I keep trying multiple times but it doesn't work I also can't find any way in the guides to do this.
These bots run through the application webhook and do not connect through the main Discord gateway. You must therefore respond to slash commands or other interactions exclusively through the application webhook - note that this excludes the events from being sent to the gateway. If your bot responds to events such as messages, reactions, or members joining, you have to set your status to offline.
See the following tutorial from the Discord API docs: https://github.com/discord/discord-api-docs/blob/main/docs/tutorials/Hosting_on_Cloudflare_Workers.md
Hi everyone i am trying to code my own bot but i don't know to set these auto intergrated roles like this one,can someone explain me how they did this.enter image description here
Bots automatically create their own role with customised permissions(in the invite), the role cannot be added to other users.
When I add a bot to my server, a role is automatically created that is named like the bot.
I don't know if the message in the screenshot is exactly from this, but I can't add members to this bot role or edit it, only the bot has it and can have it.
Is it possible to make a bot to automatically message people in my friends list or everyone from a specific server where i'm not an administrator? Where would i start, i know some Python but never worked with Discord bots, i was thinking this shouldn't be too hard as a first one?
I know i've received various messages / adveritsements from people on discord that i wouldn't think are admin on any server i'm on. Unless its done manually?
If you are wanting to write your own Discord bot in python, have a look at discord.py, follow the tutorial which will show you how to write simple commands and automated responses.
Is it possible to make a bot to automatically message people in my friends list or everyone from a specific server where i'm not an administrator?
You must have the required permissions to add the bot to the discord server. A role with 'regular' permissions will typically not allow you to do this. Additionally you can only have discord bots bound to a server, so a 'personal' bot that follows you around different servers is not really feasible.
I think what you're talking about is a self bot, which is against the Discord TOS and will likely get your account banned. If you want to get a bot on a Discord Server you'll have to ask an administrator.
Is there any API to get list of all the servers to which the discord owner(user) is connected.
I want to write a bot to manage all the servers connected to discord owner's account.
As Jeremy mentioned you can use https://discordapp.com/developers/docs/resources/user#get-current-user-guilds if logged in as the user you're trying to get guilds of. A total list of Guilds isn't possible to get for other users though, you'll only get mutual/shared guilds displayed for others.