database

package
v0.0.0-...-15f9b4c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VCRCollection *mongo.Collection
View Source
var VoiceChannelRecords = &vcr{}

Functions

func ModifySetting

func ModifySetting(setting string, value interface{}) error

Types

type Settings

type Settings struct {
	ActionLoggingChannelID string `bson:"action_logging_channel_id"`
	AutoKickDuration       string `bson:"channel_id"`
	CharacterLimit         int    `bson:"character_limit"`
}

type VoiceChannelRecord

type VoiceChannelRecord struct {
	UserID     string    `bson:"user_id"`
	ChannelID  string    `bson:"channel_id"`
	StartTime  time.Time `bson:"start_time"`
	EndTime    time.Time `bson:"end_time"`
	Duration   time.Duration
	RecordedAt time.Time `bson:"recorded_at"`
}

VoiceChannelRecord represents a record of a user's time spent in a voice channel.

type VoiceChannelReservation

type VoiceChannelReservation struct {
	UserID    string    `bson:"user_id"`
	ChannelID string    `bson:"channel_id"`
	StartTime time.Time `bson:"start_time"`
	EndTime   time.Time `bson:"end_time"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL