这是我的代码(我使用的是discord.js) message.channel.createChannel('General', "voice").then(chan => { chan.userLimit("5"); }) 但是控制台日志是这样的 (node:13080) UnhandledPromiseRejectionWarning: TypeError: message.channel.createChannel is not a function 我怎么处理这件事? 浏览0提问于2018-...
我在标头中发送我的授权令牌,但它仍然返回错误401。 我的代码: headers = { 'authorization': AUTH_TOKEN } params = { 'limit':'50', 'user_id': USER_ID, 'action_type': '40', 'authorization': AUTH_TOKEN } r = requests.get(f'https://discordapp.com/api/v6/guilds/{SERVER_ID}/audit-l...
let target = message.guild.roles.cache.get(v.id); if (!target) return; return { id: message.guild.roles.cache.find(r => r.name === target.name), allow: v.allow, deny: v.deny }; }).filter(v => v), userLimit: c.userLimit})) console.log(findguildchannels) }查看完整回答反对...
import discord intents = discord.Intents.default() intents.voice_states = True client = discord.Client(intents=intents) @client.event async def on_ready(): print('Bot is ready.') @client.event async def on_voice_state_update(member, before, after): if member == client.user: # 忽略...
user_limit=vchannel["user_limit"] ) self.id_translator[vchannel["id"]] = created.idexceptException:pass 开发者ID:Xenon-Bot,项目名称:xenon,代码行数:19,代码来源:backups.py 示例7: ten_recent_msg ▲点赞 6▼ # 需要导入模块: import discord [as 别名]# 或者: from discord importObject[as ...
1. Username Character Limit The username character limit on Discord is aminimum of 2 and a maximum of 32 characters. This limit applies to all usernames, including those for servers, channels, and individual users. Usernames must consist ofalphanumeric characters and underscores, but cannot conta...
id}") embed.set_author(name=f"{member.display_name} (@{member.name})", icon_url=member.avatar) await channelrs.send(embed=embed) else: return @bot.event async def on_member_ban(guild, user): async for entry in guild.audit_logs(limit=1,action=discord.AuditLogActi...
OpenClash Version v0.45.103-beta Bug on Environment Lean Bug on Platform Linux-amd64(x86-64) To Reproduce 国内网络环境:中国联通,iStoreOS单路由 使用Discord Describe the Bug 可以正常使用Discord的非语音频道功能,无法加入Discord的语音房间,显示RTC Connecting,No Route等错误,换用其他SSR插件可以正常使用,...
@bot.event async def on_member_ban(guild, user): async for entry in guild.audit_logs(limit=1,action=discord.AuditLogAction.ban): with open("database\\wae.json", encoding="utf-8") as f: data = json.load(f) if str(guild.id) in data: isenabled = data[str(guild...
{ id: '1069989056534000000',bodyMessage: hello world,date: '2023-01-04,time: '10:30:00 }}* @pre have discord user and server (join the user to server and make some channels) then you need to get the token of the user and the ids of the channel*/asyncinsertOne(content,channel={...