DiscordClientOption

public enum DiscordClientOption : CustomStringConvertible, Equatable

A enum representing a configuration option.

  • If passed this option, the client will not store presences on the guild.

    Declaration

    Swift

    case discardPresences
  • This option causes the client to request all users for large guilds as soon as they are created.

    Declaration

    Swift

    case fillLargeGuilds
  • If a presence comes in on a large guild, and we don’t have that user, setting this option will cause the client to query the API for that user.

    Declaration

    Swift

    case fillUsers
  • The dispatch queue that events should be handled on. This is also the queue that properties should be read from.

    Declaration

    Swift

    case handleQueue(DispatchQueue)
  • If this option is given, the client will automatically unload users who go offline. This can save some memory. However this means that invsible users will also be pruned.

    Declaration

    Swift

    case pruneUsers
  • Declaration

    Swift

    public var description: String

    Return Value

    A description of this option

  • Compares two DiscordClientOption’s descriptions.

    Declaration

    Swift

    public static func ==(lhs: DiscordClientOption, rhs: DiscordClientOption) -> Bool

    Return Value

    true if they are the same