Cannot find discord bot after successfully authorizing - discord

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.)

Related

Teams Toolkit Local Enviorment issue

I am trying o debug my team's app locally as I have done since starting development by clicking the debug(Chrome) in the team's toolkit extension. Starting today I have been getting the following error:
[RegisterBot.AlreadyCreatedBotNotExist]: Could not get bot with id 65e9a59e-3b1b-4605-97bd-9a8000243bc0 which was created before. This could happen if the bot was created by another account. Visit https://aka.ms/teamsfx-switch-account-or-subscription-help to learn more.
I have not been logged into any other account so I'm unsure how this has happened. Has this been an issue for anyone else?
The live-site issue was resolved. #koiram Can you try again to check if the issue is gone? Thanks
There's some live-site issue of the underlying server side APIs.
You can try the workaround below. For more details, check https://github.com/OfficeDev/TeamsFx/issues/7184.
Hi all, here is a workaround for VS Code:
In .vscode/tasks.json, remove "Set up bot" from the "dependsOn" field of "Start Teams App Locally" task.
From command palette, run "Tasks: Run Task" and select "Start local tunnel". Then open "Start local tunnel" terminal, you can see the
forwarding url like
"https://f633-2404-f801-9000-18-6fec-00-26d.ngrok.io".
Create an AAD app with your M365 account. Create a client secret and copy the secret value which will be used later.
Create a bot in https://dev.botframework.com/bots/new with your M365 account. Set the messaging endpoint using the above forwarding
url like
"https://f633-2404-f801-9000-18-6fec-00-26d.ngrok.io/api/messages".
After the bot is created, configure Microsoft Teams channel.
In templates/appPackage/manifest.template.json, update botId to the AAD app client id; update validDomains to the domain of the
above forwarding url like
"f633-2404-f801-9000-18-6fec-00-26d.ngrok.io".
In bot/.env.teamsfx.local, update "BOT_ID" to the AAD app client id; update BOT_PASSWORD to the AAD app client secret.
F5.

Copy Reactions To Discord Messages

We made a mistake on our Discord server by using a free tool for managing roles. I won't mention it by name. The tool doesn't allow us to edit the original embed that contains all of the emojis and associated roles. As well, Discord doesn't seem to allow you to edit another user's messages, even if you own the server. And that makes good sense.
So what we're left with is creating a new roles message that looks like the old one and adding the reactions to it. However, we don't want everyone to have to go back and redo their reactions since moving the message wouldn't do anything to their existing roles. We still want to be able to see who reacted to the original message, and preferably be able to transfer the original reactions. I would like to know if it is possible to copy the old reactions over to the new message. I kind of think that Discord won't allow it in keeping with the model that you can't do something that a user would do for themselves. But I thought I would ask here first.
Our server management bot is built using JDA and runs on a Linux server.
No it's not possible to transfer over Discord reactions to a different message.
Use better botsite that can edit embed message or bot message
you can create here: https://botghost.com/?invite=981659393298923621
Go to embed builder and try to make a new post there and read how to edit bot post that you posted using this botghost

How to make a discord bot to auto send messages?

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.

This error "DiscordAPIError: Missing Permissions" does not stop

I have a problem, and that is that every moment I get this error: DiscordAPIError: Missing Permissions and I don't know where it comes from or why
I'm not sure if anyone will still run into this issue but if you do. It could be a problem with your BOT being a lower level than the user or whatever your trying to do. For example most people have the Owner role on the top right? right. Well if you're trying to do something to a user above your bot like if the role BOT is under MEMBER and you try Banning MEMBER with BOT it won't work. Hope this helps
In 2021 this error can be fixed, if you are trying to let's say for example to create a ban all command for your discord bot, YOU HAVE TO DO THIS BEFORE GIVING UP ON IT. First go to https://discord.com/developers/applications and click on your bot's account then go to the option bot(the location were you get the bot token) then turn on those options:
EASY DIRECTIONS: Discord Developer Portal>(Click on your bot's account)>Bot(the place were you are getting the token from)>Privileged Gateway Intents>PRESENCE INTENT(TURN IT ON IF IT'S OFF)>SERVER MEMBERS INTENT(IT'S LOCATED IN THE SAME PAGE, TURN IT ON IF IT'S OFF) Those are the main thing that you have to do and then you can start to make your command!
In addition to the other answers given, I also needed to go to Server Settings > Roles. There you have a draggable list of roles available on your server. Drag your bots auto-assigned role (the bots name) to the top of the list. This will give it permission to assign subordinate roles.
I ran into this problem and it was because that I didn't give my bot the role to write in the channel. So make sure that your bot has the persmission to your channel.

Is it possible for a discord bot to enter a foreign server?

I'm using discord.js and I want to create a bot to retreive all the links of a certain channel, but I don't know if it's posible enter to a foreign server with the dicord api, for example join to this server https://discordapp.com/invite/C89qHyt.
Edited:
if it is posible, how I do that?
With a bot account, the client can't enter a server on its own. You have to use OAuth2 to invite the bot to the server. You'll also need the MANAGE_SERVER permission in the server you're trying to add the bot to.
To generate the invite link for your bot, this site may prove very useful.
you can't just add a bot to a group with no invite or permission.
You can't make it join. You have to create a invite link and let the server admin to invite it.

Resources