Questions tagged [dm]
103 questions
1
vote
2 answers
How to save r dm package visualization
What is the best way to save a visualization from the dm package? I am currently using the viewer to save images made with dm_draw, but this is producing low resolution images and is not ideal.
Example:
dm_nycflights13() %>%
dm_draw()
I've tried…

CGP
- 129
- 8
1
vote
0 answers
Porting u-boot-2020.04 to a EVB board, but spi nand flash(GD5F2GQ5xExxG) is not working
problem description:
designware-spi controller embedded in SOC
spi nor flash(MX25U25635F) on evb CAN works well.
spi nand flash(GD5F2GQ5xExxG) on evb is not working,
when entering command "nand device or nand info", u-boot returns "no devices…

qcmao
- 61
- 4
1
vote
1 answer
AttributeError: 'ClientUser' object has no attribute 'create_dm' (discord.py, I'm trying to dm all members of a guild)
I've been trying to send a DM to all members of a guild, but I always get this error:
AttributeError: 'ClientUser' object has no attribute 'create_dm'
This is my code
@bot.command()
async def send(ctx, *, message):
for member in…

HoneyPoop
- 473
- 1
- 6
- 25
1
vote
1 answer
Python Discord Bot - Get a users roles in a different server
So I can check a user's roles in a server with the following code:
#Check Admin:
playerRoles = []
for x in message.author.roles:
playerRoles.append(str(x))
if "Admin" in playerRoles:
But I want bot to be…

CityFrog
- 95
- 7
1
vote
1 answer
Is there a way to allow my bot to check DMs and post them in a channel in my server?
How would I make my bot send a message to a specific channel with the message when someone DMs the bot? I was thinking about webhooks, but I’m not sure if that’s the right way to go.

lightvng
- 15
- 1
- 7
1
vote
1 answer
How to exclude a role in discord.py
So I have an Emergency command incase there is something and I have to DM every one but there is a problem with the bots as DMing them causes an error (the bots role is "BOTS")
@bot.command(pass_context=True)
async def emergency(ctx, *, message:…

Norzka
- 47
- 3
- 10
1
vote
2 answers
How to make a discord js bot send direct/private message not to author?
I am using node.js for discord.
After I make a command, I want my bot to send a direct/private message to a specific person, not the author who makes the command (me).
Right now I have the person's <@000000000000000000> (I think this is called an…

ricola
- 61
- 2
- 9
1
vote
2 answers
Git: Merging changes from a base branch
Foreword, I'm fairly new to using git and versioning systems in general. I think I understand most of the concepts, but i seem to have run into a wall here/ I'm using smartgit as my client, which may be relevant, and coding for a game server
So a…

Nanako
- 59
- 7
1
vote
3 answers
Inner join two tables
when inner join, is it always the case the condition of equality values are the equality of the primary key in one table and foreign key in another table.
when inner join two tables that have the composite primary key and composite foreign key, is…

jiaqi
- 11
- 2
1
vote
0 answers
Constructor time IO in a device mapper implementation
I'm developing a device mapper driver and was wondering about delays dues to performing disk initialization in the constructor context. There's a fair amount of IO to be done during some initial setup - ranges of blocks to clean out.
From looking…

TonyA
- 11
- 2
1
vote
2 answers
Creating dm-cache using dmsetup Kernel 3.9.6
I am trying to create a dm-cache device using a virtual machine. I have multiple disks labelled Cache_disk, Device_to_Cache and meta_data in /dev/sdb,sdc,sdd respectively, When trying to create the cache, I run the command:
dmsetup create my_cache…

thisismario123
- 43
- 1
- 9
0
votes
1 answer
discord.js v14 | Send a DM embed message with slash commands
trying to make a command like this /dm and the message will be sent as an embed
const { SlashCommandBuilder } = require('discord.js');
module.exports = {
const data = new SlashCommandBuilder()
.setName('dm')
.setDescription('Make me DM…

Allen Playz
- 11
- 1
0
votes
1 answer
Discord.py - Detecting Reactions in DMs, wait_for('reaction_add') incorrect Message
I'm having an odd issue when trying to detect a reaction on a sent DM.
First, I'm checking if the !hello command is being run, then sending the author of that message a DM asking if they like the bot. The user is to input their opinion using the…

The Turt1e9
- 1
- 2
0
votes
1 answer
Why are the values of my form getting lost in php when sending them to an includes folder?
I am creating a messaging system in my website. I have a GET variable that I retrieve from the URL which indicates which user the inputted message should be sent to. I store this variable (messagesTo = $_GET['id']) in a form (with the message body…

averageUser
- 1
- 1
0
votes
0 answers
javascript discord bot only answers in DMs
I develop a discord bot in javascript and added the bot to a server. The bot has the permissions to view the channel, view message history and send messages.
Sadly, it only replys in DMs.
require("dotenv").config(); //to start process from .env…

Julian Patt
- 1
- 1