Coder Social home page Coder Social logo

discord.addons.interactive's Introduction

Interactive

An addon for Discord.Net that adds interactivity to your commands.

Supported Features

  • Waiting for messages over the gateway
  • Paginated messages
  • Reaction callbacks
  • A powerful criteria system

Usage

To use, add an InteractiveService to your service provider. It is also recommended to make your modules inherit from InteractiveBase

discord.addons.interactive's People

Contributors

foxbot avatar nekzor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

discord.addons.interactive's Issues

Enable possible Async mode

It strikes me as odd that we can't set the service to work in Async mode at all. I'm not sure if this is due to a hard rule that would otherwise break the service or not. But if it's not a code breaking thing I think it would be nice to have the option to create an InlineReactionCallback with RunMode Async

Timeout

Timeout actions trigger regardless of whether reactions have already been added.
It may be a good idea to add extra properties to disable timeout callbacks messages under certain conditions

Paginator breaks on d.net nightly

Using discord.net 2.2.0-dev-20191025.3
and Discord.Addons.PassiveInteractive 2.0.4

A ReactionAdded handler has thrown an unhandled exception.
System.MissingMethodException: Method not found: 'System.Threading.Tasks.Task Discord.IUserMessage.RemoveReactionAsync(Discord.IEmote, Discord.IUser, Discord.RequestOptions)'.
   at Discord.Addons.Interactive.PaginatedMessageCallback.HandleCallbackAsync(SocketReaction reaction)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Discord.Addons.Interactive.PaginatedMessageCallback.HandleCallbackAsync(SocketReaction reaction)
   at Discord.Addons.Interactive.InteractiveService.HandleReactionAsync(Cacheable`2 message, ISocketMessageChannel channel, SocketReaction reaction)
   at Discord.EventExtensions.InvokeAsync[T1,T2,T3](AsyncEvent`1 eventHandler, T1 arg1, T2 arg2, T3 arg3)
   at Discord.WebSocket.DiscordSocketClient.TimeoutWrap(String name, Func`1 action)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.