Cyanic76 / discord-modmail

THIS IS A MIRROR. ISSUES AND PR MUST BE SUBMITTED TO CODEBERG.
https://codeberg.org/Cyanic76/discord-modmail
MIT License
77 stars 48 forks source link

table is not defined / userID is not defined #29

Closed AngelIsSad closed 3 years ago

AngelIsSad commented 3 years ago

Everytime when i try closing an open support ticket, an error pops up saying userID is not defined and im not sure how to fix this

When replying to an open support ticket with [prefix]reply, there is an error saying table is not defined

1

2

AngelIsSad commented 3 years ago

dbTable2 is still not defined and the reply feature still doesn't work

AngelIsSad commented 3 years ago

Line: 111 and 112

AngelIsSad commented 3 years ago

Yes

AngelIsSad commented 3 years ago

The log broke now Image

AngelIsSad commented 3 years ago

It logs messages which are not in embed, but doesnt log embed messages Image

Cyanic76 commented 3 years ago

Try to put this here (documentation)

for(var i = 0; i < msg.embeds.length; i++) {
  collection += `${msg.embeds[i].description}\n\n`;
}
AngelIsSad commented 3 years ago

It worked!

AngelIsSad commented 3 years ago

I have a question

AngelIsSad commented 3 years ago

Is it possible to make it like so when a user DMs the Bot, the Bot asks him some questions before creating a channel in the server?

In short: DM Menu

AngelIsSad commented 3 years ago

I found another bug

Cyanic76 commented 3 years ago

You can do so using a reaction menu or an awaitMessages function.

AngelIsSad commented 3 years ago

The Bot creates the ticket channel on top of the server when Admin perms are denied but all other perms are enabled

Cyanic76 commented 3 years ago

Here, directly put an ID like channel.setParent('id'); instead of config.ticketCategory

AngelIsSad commented 3 years ago

It still creates the channel on top

AngelIsSad commented 3 years ago

Image

Cyanic76 commented 3 years ago

Do you see any error in the console?

AngelIsSad commented 3 years ago

Missing Permission and Missing Access

AngelIsSad commented 3 years ago

No line shown

AngelIsSad commented 3 years ago

Error (add a ! before [Picture name](picture link))

Cyanic76 commented 3 years ago

It's an error on your side

Check this and this

stale[bot] commented 3 years ago

This issue was marked as stale because it had no activity during the past 2 weeks. If this issue keeps being inactive, it will get closed in 3 days. Thanks for your contributions!

stale[bot] commented 3 years ago

This issue was closed due to inactivity. Thanks for your contributions!