CS5500-S-2023 / team-bear

team-bear created by GitHub Classroom
0 stars 0 forks source link

Implementation of CreateTradingChannelCommand.java #66

Closed tsanevp closed 1 year ago

tsanevp commented 1 year ago

The command to create a new trading channel has been created.

Within the slash command event, three cases may be hit.

  1. The user who called the command does not have the required permissions to create a new trading channel. Thus, they are sent a message denying them from creating the channel.
  2. The given name for the text channel already exists, so the trading channel cannot be created. A message is sent to the user that they must re-call the command and try another name.
  3. The name of the new trading channel does not exist, and the user has proper permissions. Thus the new trading channel is created and assigned as the guild's main trading channel.

This code is not unit testable. Only has discord logic in it really.