mineral-dart / core

🧡 The neuralgic heart of the application, this module gathers all the functionalities of the framework.
https://mineral-foundation.org
MIT License
27 stars 8 forks source link

Fix small problems #206

Closed PandaGuerrier closed 1 month ago

PandaGuerrier commented 1 month ago

Missing toString() method in serialized Discord tag

Bad parameters in PrivateChannelUpdateEvent

import 'dart:async';

import 'package:mineral/src/api/private/channels/private_channel.dart';
import 'package:mineral/src/domains/events/event.dart';
import 'package:mineral/src/domains/events/types/listenable_event.dart';

typedef PrivateChannelUpdateEventHandler = FutureOr<void> Function(
    PrivateChannel);

abstract class PrivateChannelUpdateEvent implements ListenableEvent {
  @override
  Event get event => Event.privateChannelUpdate;

  @override
  String? customId;

  FutureOr<void> handle(PrivateChannel channel);
}

Missing interaction in CommandContext

Image