nextcord icon indicating copy to clipboard operation
nextcord copied to clipboard

Custom Interactions

Open Soumeh-zz opened this issue 3 years ago • 2 comments

Summary

a get_context() alternative for slash command Interaction objects

What is the feature request for?

Application commands

The Problem

Currently, custom functions cannot be applied to Interaction objects like they can to the Context object used in normal commands

The Ideal Solution

A get_application() method gets added to the Client object.

The Current Solution

No response

Additional Context

No response

Soumeh-zz avatar Aug 01 '22 09:08 Soumeh-zz

Something like this is planned for NCv3.

TAG-Epic avatar Aug 01 '22 09:08 TAG-Epic

In terms of implementation details, adding something like get_interaction(..., cls=...) shouldn't be too hard. Currently this is hard coded here, but could easily be changed to use a method on the client or alternately as a reference to the object passed to Client's init

Skelmis avatar Aug 01 '22 10:08 Skelmis