你好,我正在尝试制作一个不和谐的机器人来解除某人的禁令,但它给了我这个错误: Unhandled promise rejection: Error [BAN_RESOLVE_ID]: Couldn't resolve the user ID to unban.
at GuildMemberManager.unban (C:\Users\Jakub Sokol\Documents\Coding\Discord Bots\Smiley\node_modules\discord.js\src\managers\GuildMemberManager.js:210:36)
at
代码应该接受用户输入的任何数字,并显示接下来的19个数字。它是如何跳过任何包含3,6,9的数字的。 我设法写了一段可以做到这一点的代码,但直到数字100。我设法写了另一段代码,它可以接受用户的任何输入,并告诉您它是否有特定的数字。但是我不能把这两个代码结合起来。 此代码工作正常,直到数字100: int A, B;
printf("Enter a number");
scanf("%d", &A);
int C;
int D = 20;
int F = 100;
for (; ; A++) {
B = A % 10;
C = A / 1
我目前正在做这样的事情
std::string reg ="^/house/room/section/.*"
这允许用户在我的程序拾取的部分之后传递任何单词,uses.However我希望用户只能在部分之后输入一个单词,而不是一个句子。如何将(.*)修改为没有空格的内容。例如
/house/room/section/A1343 ALLOWED
/house/room/section/A1343 A1002 NOT ALLOWED because a space was found inside the follow up word