SwordOptions

public struct SwordOptions

Sword Options structure

  • Whether or not the application is a bot or oauth bearer

    Declaration

    Swift

    public var isBot = true
  • Whether or not this bot will distribute it’s shards across multiple process/machines

    Declaration

    Swift

    public var isDistributed = false
  • Array of event names to disable

    Declaration

    Swift

    public var disabledEvents = [Event]()
  • Whether or not caching offline members is allowed

    Declaration

    Swift

    public var willCacheAllMembers = false
  • Whether or not the bot will log to console

    Declaration

    Swift

    public var willLog = false
  • Whether or not this bot is sharded

    Declaration

    Swift

    public var willShard = true
  • MARK: Initializer Creates a default SwordOptions

    Declaration

    Swift

    public init()