Why is my discord bot not joining my server - discord

my discord bot not joining my server.
i had a lot of requests to added.mydiscordwebsite.com/?error=invalid_scope&error_description=The+requested+scope+is+invalid%2C+unknown%2C+or+malformed
what does that mean?
I tried changed the scope. no change.

Related

The subscription mails are not getting. How to get subscription mail

The subscription mails are not getting from our DSpace repository... All other mails are getting (like mail to admin for approve a submitted item, mail when an item submitted is get approved, etc.)..
How to get subscription mail ??
Sending subscription notices requires a cron job or scheduled tasks (for Windows OS) for it to work. The command for that is: [dspace]\bin\dspace sub-daily. Then you should set a schedule for it to run (the recommended frequency is daily).

Discord.py-rewirte Log server id?

How Do I log when my bot joins the server and prints the server id?
Like so when the bot joins a server it will print the server id.
If you can give any help thanks.
You can make use of the on_guild_join event. From there you can use the guild object within the event parameters to gather the id.
https://discordpy.readthedocs.io/en/rewrite/api.html#discord.on_guild_join
https://discordpy.readthedocs.io/en/latest/api.html#guild

Change a server's owner

I want to change the server's owner for my private bot.
I tried guild.setOwner() but it did not work...
You can't.
To change the owner of a server, you must be the owner. And as far as I know, bots can't have ownership of servers.
When I say that you must be the owner, I mean the account that is running the function. If you are the owner, and you're trying to change the owner with the bot, you won't be able, because the bot is not the owner.
EDIT: Aparently bots can have ownership of a Discord Server, but the bot must create the server.
To change the ownership of the server (if the bot has it) you do <guild>.setOwner(<GuildMemberResolvable>)
https://discord.js.org/#/docs/main/stable/typedef/GuildMemberResolvable

Sent status database mail with gmail

I have a problem with Database mail, which we are currently trying to change accounts for a database mail with a gmail account.
The problem is when I try to send an email with the wrong email account, the sent_status is always "Sent" in the log.
whereas before, when we used local e-mail, always showed a failed status when we tried it with the wrong e-mail.
SQL Server will just trigger the mail through SMTP, But if you wanna track the delivery status then you should check on SMTP server, which has been used in Mail configuration.

How can I write a query for notification request from application to Database?

This is my perivous question. about how to push the data from database instead of application pull data.
After went through the link and the documents I come to know that I need to write a query in application side for notification request then the DB will register my request in subscription and If there is any change in the DB it will check subscription, if the request is there it will send the message to the client.
This para is from the above mentioned link
Along with the query submitted for the notification, the client submits a service name
and a broker instance. Each notification subscription begins a Service Broker dialog
with this provided service and broker instance. When data is changed and the change
would affect the result of the submitted query result, a message is sent on this
dialog. By sending this message, the client is considered notified and the notification
subscription is removed. If client desires to be notified on further changes, is
supposed to subscribe again.
Now I don't know how to write a query in application side for notification request and I don't under stand submit a service and a broker instance from the above given para. I guess the service and broker instance needs to be created in application before query the database for notification request. If it is so how to create service and a broker instance?
I can check the DB server for subscription by select * from sys.dm_qn_subscriptions command. can anyone help me?
Probably you didn't understand answer to your previous question completely, so I will try to clarify some things:
I guess the service and broker instance needs to be created in
application before query the database for notification request. If it
is so how to create service and a broker instance?
Service broker is a component of SQL Server, you don't instance nor create it. You enable it - it is a SQL Server admin task to do it.
To create a new service you have to first create queue for it and a contract to have a way of communication. Then you create your service.
When you create your service, instancing, activation and other related operations are handled by the Service Broker.

Resources