You can not select more than 25 topicsTopics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
[!WARNING]
Userbot/selfbot (logging in with a user token) is no
longer supported with this library starting from 2.0, as
logging in under a user account may result in account termination.
There are few possible reasons why this may occur.
You are not using the appropriate TokenType. If you are using a
bot account created from the Discord Developer portal, you should
be using TokenType.Bot.
You are not using the correct login credentials. Please keep in
mind that tokens is different from a client secret.
How do I do X, Y, Z when my bot connects/logs on? Why do I get a NullReferenceException upon calling any client methods after connect?
Your bot should not attempt to interact in any way with
guilds/servers until the Ready event fires. When the bot
connects, it first has to download guild information from
Discord in order for you to get access to any server
information; the client is not ready at this point.
Technically, the GuildAvailable event fires once the data for a
particular guild has downloaded; however, it's best to wait for all
guilds to be downloaded. Once all downloads are complete, the Ready
event is triggered, then you can proceed to do whatever you like.
How do I get a message's previous content when that message is edited?
If you need to do anything with messages (e.g. checking Reactions,
checking the content of edited/deleted messages), you must set the
MessageCacheSize in your DiscordSocketConfig settings in order to
use the cached message entity. Read more about it here.
Message Cache must be enabled.
Hook the MessageUpdated event. This event provides a before and after object.
Only messages received after the bot comes online will be
available in the cache.
Please read the following content carefully:
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.