0

Discordのサーバーに単純なデータベースを実装したいので、ボットにDMを送信する必要があり、変数が値を変更すると、変数の新しい値でDMを編集します(彼が送信したメッセージのIDを使用) . (私の英語でごめんなさい)

それが私が現時点で持っているものです:

async function replyAndLog() {
    let sent = await msg.author.send("<database things>");
    let id = sent.id;
    console.log(id) //the id of the DM
}


//when i need to edit
if (msg.content === '!edit') {
    msg.id("id").edit("<new databese>") // here's the problem, i dont know how to write this line
}
4

2 に答える 2