示例#1
0
        public static async void AddRole(object sender, RoutedEventArgs e)
        {
            var modify = new DiscordAPI.API.Guild.Models.ModifyGuildMember(LocalState.Guilds[App.CurrentGuildId].members[((sender as MenuFlyoutItem).Tag as Tuple <string, string>).Item2]);

            modify.ToggleRole((((sender as MenuFlyoutItem).Tag as Tuple <string, string>).Item1));
            await RESTCalls.ModifyGuildMember(App.CurrentGuildId, ((sender as MenuFlyoutItem).Tag as Tuple <string, string>).Item2, modify);
        }