这可以是字符串或 Discord.js 的 MessageEmbed 对象。 ```js const message = "您好,我是机器人!"; ``` 3. 使用 `msg.send` 方法发送消息:最后,使用 `msg.send` 方法将消息发送给用户。 ```js user.send(message) .then(() => console.log(`成功向 ${user.tag} 发送了消息!`)) .catch(...
Imports System.IO Imports Discord Imports Discord.WebSocket Imports Social.Services.Drawing Namespace Services.Commands Public Class Time Public Shared Async Sub Show(processor As Processor, sm As SocketMessage, args() As String) Dim attachment As FileInfo Dim eb As New EmbedBuilder With {.Title ...
bot.js文件的内容:const client = new Discord.Client();const Discord = require('discord.js'); const fs = require("fs&q 浏览10提问于2021-01-29得票数 0 回答已采纳 1回答 命令对上述用户执行DM操作 、、、 下面是我对上述成员进行DM的代码。const { MessageEmbed } = require("discord.js"); n...
当它尝试发送到名为test的通道时,它会失败 代码: const { Client, Message, MessageEmbed } = require('discord.js'); module.exports(questions[collectCounter+ 浏览16提问于2021-03-22得票数 2 回答已采纳 2回答 无法读取未定义的属性"send“ 、 所以我有这样一个东西,如果你在控制台中编写,它会将...
You can use the "get message" option to get messages from discord as well. Be sure to have the [] around the whole message. The only way to change lines is adding \n. After discord update on 22nd January 2022; Embed support was removed from DMDGO V1.7.5 and higher as discord ...
Message a YouTube Creator on Mobile If you’re using the mobile version of YouTube, you can comment on videos or find affiliated links (Twitter, Discord, etc. But, you cannot access the creator’s email. You will need to use the browser version of YouTube to email the creator. ...
```js const Bot = require("discord-bot-send"), bot = new Bot("YOUR_BOT_TOKEN"); // embed is also optional.. but you need to have either the content or embed filled out.. bot.send("channelID", { content: optional_content
This asset is using the public Discord API, and is NOT affiliated with Discord Inc. Technical details Full rich embed support - any message or embed you see on Discord can be sent with Dishooks. Attachment support - up to 10 files can be sent with each message. Change username and ...
示例1: sendMessage ▲点赞 3▼ importsx.blah.discord.handle.obj.IChannel;//导入方法依赖的package包/类publicstaticvoidsendMessage(IChannel channel, String message, EmbedObject object){if(message.length() >2000|| object.description.length() >2000) { ...
channel.send(embed2) if(!message.member.hasPermission("MANAGE_MESSAGES")) return message.channel.send(embed) if(!args[0]) return message.channel.send("Voeg een cijfer tussen de 1 en de 100 toe.") message.channel.bulkDelete(args[0]).then(() => { message.channel.send(`Ik heb voor ...