Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Crash during RPS Command #42

Open
ronniegeraghty opened this issue Dec 11, 2021 · 0 comments
Open

BUG: Crash during RPS Command #42

ronniegeraghty opened this issue Dec 11, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ronniegeraghty
Copy link
Owner

Crash output:

Starting Bot
Initializing Bot
Loading Commands
Loading Raw Commands
Loading Event Listeners
➕ Adding Command: echo
➕ Adding Command: ping
➕ Adding Command: rps
➕ Adding Command: server
➕ Adding Command: user
➕ Adding Raw Command: add-slash-command
➕ Adding Event Listener: interactionCreate
➕ Adding Event Listener: ready
Connected to MongoDB
Ready! Logged in as Ron_Bot#0527
Command Triggered: ronniegerag#5753 triggered Command: rps, on Server: Ronnie & Sophie in channel #general

  • /rps
  • User chose: rock - Bot chose: scissor - Winner: ronniegerag#5753
    Command Triggered: ronniegerag#5753 triggered Command: rps, on Server: Ronnie & Sophie in channel #general
  • /rps
  • User chose: rock - Bot chose: paper - Winner: Ron_Bot#0527
    Command Triggered: ronniegerag#5753 triggered Command: rps, on Server: Ronnie & Sophie in channel #general
  • /rps
  • User chose: scissor - Bot chose: rock - Winner: Ron_Bot#0527
    Command Triggered: ronniegerag#5753 triggered Command: rps, on Server: Ronnie & Sophie in channel #general
  • /rps
  • User chose: paper - Bot chose: rock - Winner: ronniegerag#5753
    Command Triggered: ronniegerag#5753 triggered Command: rps, on Server: Ronnie & Sophie in channel #general
  • /rps
    Command Triggered: ronniegerag#5753 triggered Command: rps, on Server: Ronnie & Sophie in channel #new-channel
  • /rps
  • User chose: scissor - Bot chose: paper - Winner: ronniegerag#5753

C:\Users\Ronnie\Desktop\Coding\Coding Projects\Discord_Bot\src\commands\RPSCommand.ts:72
i.client.users.cache.get(winner).tag
^
TypeError: Cannot read properties of undefined (reading 'tag')
at RPSCommand. (C:\Users\Ronnie\Desktop\Coding\Coding Projects\Discord_Bot\src\commands\RPSCommand.ts:72:49)
at Generator.next ()
at C:\Users\Ronnie\Desktop\Coding\Coding Projects\Discord_Bot\src\commands\RPSCommand.ts:8:71
at new Promise ()
at __awaiter (C:\Users\Ronnie\Desktop\Coding\Coding Projects\Discord_Bot\src\commands\RPSCommand.ts:4:12)
at InteractionCollector. (C:\Users\Ronnie\Desktop\Coding\Coding Projects\Discord_Bot\src\commands\RPSCommand.ts:52:43)
at InteractionCollector.emit (node:events:402:35)
at InteractionCollector.emit (node:domain:475:12)
at InteractionCollector.handleCollect (C:\Users\Ronnie\Desktop\Coding\Coding Projects\Discord_Bot\node_modules\discord.js\src\structures\interfaces\Collector.js:108:12)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

@ronniegeraghty ronniegeraghty added the bug Something isn't working label Dec 11, 2021
@ronniegeraghty ronniegeraghty self-assigned this Dec 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant