Giter Site home page Giter Site logo

Comments (5)

DonovanDMC avatar DonovanDMC commented on July 23, 2024

you'll never get an intact dm over the gateway, check if type is undefined instead

from eris.

Akinator31 avatar Akinator31 commented on July 23, 2024

That's what I tell myself but when I print "channel", I get an object but I don't know what it corresponds to.

Like this :

parentID: '11207080827191858',
nsfw: false,
permissionOverwrites: Collection(5) [Map] {
'28464678364387553' => PermissionOverwrite {
allow: 3072n,
deny: 0n,
id: '28464683643287553',
type: 1
},
'11207046300967226942' => PermissionOverwrite {
allow: 1049600n,
deny: 0n,
id: '112070430767226942',
type: 0
},
'1120704201362576114' => PermissionOverwrite {
allow: 1024n,
deny: 1048576n,
id: '11207042016782776114',
type: 0
},
'1120704635675664180' => PermissionOverwrite {
allow: 1049600n,
deny: 0n,
id: '1120704630970364180',
type: 0
},
'1143984619523574443' => PermissionOverwrite {
allow: 1049600n,
deny: 0n,
id: '1143984619527804443',
type: 0
},
baseObject: [class PermissionOverwrite extends Permission],
limit: undefined
},
rateLimitPerUser: 0,
topic: null,
messages: Collection(0) [Map] {
baseObject: [class Message extends Base],
limit: 100
},
lastMessageID: '12439638459051585627',
lastPinTimestamp: null
}

from eris.

Akinator31 avatar Akinator31 commented on July 23, 2024

So I don't know how to filter messages to display the status "is writing..." only to users who write in their private message between themselves and the bot.

from eris.

DonovanDMC avatar DonovanDMC commented on July 23, 2024

That's a guild channel, a dm channel will always only have an id

As I said, check if type is undefined

from eris.

Akinator31 avatar Akinator31 commented on July 23, 2024

Channel is not undefined, it's an object. But I solve my problem by add an other parameter in the if.

Eris.PrivateChannel doesn't work correctly I think.

Thanks a lot for your help.

from eris.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.