Questions tagged [dm]
103 questions
0
votes
0 answers
Modified login shell crashes when display manager loads
For a reason I've made an static binary and rewrote it on /bin/bash. The code:
#include
#include
#include
#include
#include
int main(int argc, char *argv[]){
char *realbin, *curbin;
FILE…

zbx0310
- 64
- 8
0
votes
0 answers
How to get the millisecond level time information in Gatan Digital Micrograph
We use the ETEM with Oneview camera, which can capture a image within 1/300 of a second, but the time can only be displayed to the second level in the tag group. Does Acquisition (OS) time contain millisecond-level information, can it be converted…

FanZhang
- 1
0
votes
1 answer
Discord Py bot dms server owner when he joins the server
So i want that the bot dms the server owner when it get added to the server.
Here is the code:
@client.event
async def on_guild_join(guild, ctx):
guild_owner = client.get_user(int(ctx.guild.owner.id))
await guild_owner.send("hi")
But I always…

windleak
- 1
0
votes
1 answer
Cannot read properties of undefined (reading 'send')
So when my bot joins a new server I want it to dm me and say it did but when I try to make it find me by my guild and my id it says undefined
const test = await client.guilds.cache.get('my guilds id').client.users.cache.get("my id").send(yo i joined…

Nick
- 11
- 4
0
votes
1 answer
How to send dm as bot after voted top.gg discord.js?
const Discord = require(discord.js);
const client = new Discord.Client();
const Topgg = require ("@top-gg/sdk");
So i dont know about next code
Sorry im to early for studying in javascript
In here im using discord.js V12

Maulana Ali
- 1
- 2
0
votes
1 answer
discord.py bot can't dm multiple users with a role
@client.command()
async def eventsoon(ctx):
role = discord.utils.get(ctx.message.guild.roles, name='Golden God')
for member in ctx.message.guild.members:
if role in member.roles:
await member.send("ur mom")
I want the bot to dm users…

kiddo42069
- 9
- 3
0
votes
1 answer
Discord.py bot doesn't dm user
If someone says hey in chat I want the bot to dm them, but it gives absolutely no errors an doesnt work either
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content.lower == "hey":
await…

kiddo42069
- 9
- 3
0
votes
3 answers
Discord.py Send DM to specific User ID
I would just like to send a DM to my friend via python code.
This is my code, but it does not work.
Code:
import discord
client = discord.Client(token="MY_TOKEN")
async def sendDm():
user = client.get_user("USER_ID")
await user.send("Hello…

grusso
- 3
- 1
- 1
- 2
0
votes
1 answer
How do you make SAS toolbar available to ALL windows?
I am using SAS 9.1 and wish to make my toolbar available regardless of which window is in 'focus' (eg log, editor, output).
My code looks like this:
libname temp678 "\\MyDrive\Team Autoexec";
dm "toolload bar…

Allan Bowe
- 12,306
- 19
- 75
- 124
0
votes
2 answers
How can I dm a specific User by using Discord.py?
I'm making a discord bot with discord.py and I want to a specific user when a user uses a specific command.
from discord import DMChannel
client = discord.Client()
client = commands.Bot(command_prefix=']')
@client.command(name='dmsend',…

Rovindu Thamuditha
- 182
- 2
- 13
0
votes
1 answer
How to get dm in discord.py
I want to know that to get the user who send dm, the idea is to stop people using the bot in dm and then ping them in #bot-lab so that they can use it there
i havn't tried anything yet, but would begreat if anyone tell me how to do
thank you

Hardik Kumar Sinha
- 37
- 1
- 9
0
votes
1 answer
u-boot driver model: using sandbox_defconfig, "demo hello 5" got error "Command 'demo' failed: Error -22"
u-boot version: 2021.07-RC3
[Description]
Build and run u-boot:
make sandbox_defconfig
make
./u-boot -d u-boot.dtb
Type the following on the command-line:
=> demo hello 5
I Got the following Error:
Command 'demo' failed: Error…

Wanghz
- 305
- 2
- 12
0
votes
2 answers
How can I make a discord bot that will DM new users when they join the server?
So basically I've been working on this one bot for my server, I want it to DM the users that join the server, Like whenever a user joins my server, they would receive a DM by my bot?
I have used this code now, but it doesn't seem to work, can anyone…

isonic_07
- 5
- 2
0
votes
1 answer
Dynamic help cmd to be embed
I’m very new to this. I use a lot of copy-pasta!
I followed a discord.js tutorial and it helped me set up the help command. The dynamic one but it looks terrible.
It runs perfect. I already have embeds for my main commands etc. and those perform…
0
votes
1 answer
How to dm user before executing a ban in discord.js?
Can someone please tell me how I can send a user a dm before he gets banned? Everything works fine, but the dm. It seems, that if i put the dm code where it is now, the user gets banned first, then gets a direct message which obviously does not work…

hubschrauber
- 55
- 10