message = await channel.fetch_message(message_id) await message.pin() bot.run('YOUR_BOT_TOKEN') 在上述示例中,我们创建了一个 Discord.py 的 Bot 实例,并定义了一个pin命令。当用户在 Discord 中发送!pin <message_id>命令时,Bot 会将指定的消息固定在当前通道中。 请注意,为了使用fetch_message()方...
How to pin a message in Discord (via the desktop app) Step 1: Hover over the line of text in the channel. The “…” More button will appear on the right-hand side. Image used with permission by copyright holder Step 2: Next, simply click on the Pin Message option, and you’ll...
DiscordBot.addPinnedChannelMessage Pin a message in a channel. FieldTypeDescription accessToken credentials Access token for your bot received from Discord channelId Number Id of the guild channel messageId Number Id of the message in channel DiscordBot.getPinnedMessages Get pinned messages in a cha...
To start, find a message that you wish to pin in a channel message on your server. Once you’ve located a message to pin, hover over the message until thethree-dots iconappears in the upper-right corner of the message. Press the three-dots icon and selectPin Messagefrom the drop-down...
message.channel.send(":apple:***SONDAGE :apple:\n "+choix1+" ou "+""+choix2+"***") .then(function (message) { message.react("👍") message.react("👎") message.pin() message.delete() }); 它向频道发送消息并添加反应,在我的控制台中出现此错误: (node:11728) UnhandledPromiseRe...
Edit Message: Allows you to edit the message. Pin Message: inning a message marks it as important. Anyone who enters a server where a message is pinned will be alerted to the same. Clicking on the Pinned Messages icon on the upper left part of the message box allows people to see all...
Keyboard shortcuts can make a big difference when it comes to making your way around the Discord interface and its various functions. These key combos will, for example, help you mark everything in a channel as read or pin a message to the top of the chat window. ...
在以前的文章中,我们介绍了小程序的登录鉴权功能,方便开发者去获取用户的appid和session_key以便确认用户...
q–quote message. +–add reaction. r–reply to message. p–pin message. ALT+Enter –mark unread. Discord Bot Commands Each bot has its own commands and can be viewed by typing theslash (/) key. There’s also theDiscord Custom Commandsbot, which can create as many custom commands as ...
Once you’re in voice chat, Discord offers some handy quick controls at the bottom of the voice chat window or channel window. Clicking theMicrophoneicon mutes your own mic instantly, while clicking theHeadphonesicon activates “deafen.” That kills all incoming sound from Discord, as well as ...