GuildController

GuildController

Controller for Guilds

Constructor

new GuildController()

Source:

Extends

  • Map

Methods

(async) addGuild(guild)

Source:

Adds a Guild to the GuildController

Parameters:
Name Type Description
guild external:Guild

discord.js Guild

fetchInitialGuilds(client)

Source:

Fetches the Guilds to which the bot is connected

Parameters:
Name Type Description
client external:Client

discord.js Client

init(config)

Source:

Initializes a new GuildController

Parameters:
Name Type Description
config Object

configuration object

Properties
Name Type Description
server Esdi

Esdi server instance

removeGuild(guild)

Source:

Removes a Guild from the GuildController

Parameters:
Name Type Description
guild external:Guild

discord.js Guild

start()

Source:

Starts the GuildController

Listens to Events:

stop()

Source:

Stops the GuildController

Listens to Events: