示例#1
0
        /// <summary>
        /// Closes the DM
        /// </summary>
        public void Leave()
        {
            DMChannel group = Client.DeleteChannel(Id).ToDMChannel();

            Name       = group.Name;
            Recipients = group.Recipients;
        }
示例#2
0
        /// <summary>
        /// Updates the channel's info
        /// </summary>
        public override void Update()
        {
            DMChannel channel = Client.GetDMChannel(Id);

            Json       = channel.Json;
            Recipients = channel.Recipients;
        }