internal static SocketApplicationCommand Create(DiscordSocketClient client, GatewayModel model)
        {
            var entity = new SocketApplicationCommand(client, model.Id, model.GuildId.ToNullable());

            entity.Update(model);
            return(entity);
        }
Ejemplo n.º 2
0
        internal static SocketApplicationCommand Create(DiscordSocketClient client, Model model)
        {
            var entity = new SocketApplicationCommand(client, model.Id);

            entity.Update(model);
            return(entity);
        }
 internal void AddCommand(SocketApplicationCommand command)
 {
     _commands[command.Id] = command;
 }