Package org.prithvidiamond1.DB.Models
Class DiscordServer
java.lang.Object
org.prithvidiamond1.DB.Models.DiscordServer
This class manages the backend repository (MongoDB Atlas) that holds each Discord server's preferences.
-
Constructor Summary
ConstructorDescriptionDiscordServer
(String id, String guildPrefix) The constructor for the repository -
Method Summary
Modifier and TypeMethodDescriptionMethod to get the Discord server's current guild prefixgetId()
Method to get the Discord server's IDvoid
setGuildPrefix
(String guildPrefix) Method to set the Discord server's current guild prefixvoid
Method to set the Discord server's IDtoString()
Method that overrides the repository's existing toString method
-
Constructor Details
-
DiscordServer
The constructor for the repository- Parameters:
id
- the Discord server's IDguildPrefix
- the Discord server's guild prefix
-
-
Method Details
-
getId
Method to get the Discord server's ID- Returns:
- the Discord server's ID
-
setId
Method to set the Discord server's ID- Parameters:
id
- the Discord server's ID
-
getGuildPrefix
Method to get the Discord server's current guild prefix- Returns:
- the Discord server's current guild prefix
-
setGuildPrefix
Method to set the Discord server's current guild prefix- Parameters:
guildPrefix
- the Discord server's current guild prefix
-
toString
Method that overrides the repository's existing toString method
-