Code Monkey home page Code Monkey logo

Comments (5)

bogy0 avatar bogy0 commented on May 29, 2024

this line is susp for me:

if (!flags.channel || !flags.type || !flags.image) {

maybe there we should use a user flag:

try {
			if (!flags.channel || !flags.type || !flags.user) {
...

from stream-cli.

SeniYG avatar SeniYG commented on May 29, 2024

Hi,

Thanks for reaching out.
Are you having an error when trying to reference one of your custom channel types?
If yes can you share this error?

Best,

from stream-cli.

bogy0 avatar bogy0 commented on May 29, 2024

ok so here is what i exactly try:
I want to promote a user to moderator one of our custom type channel. For example this channel's type: custom_type1 and the channelID is my_channel1 and here is the user's userID: user_12345

so my command will be:

> stream chat:channel:promote_moderator --type="custom_type1" --channel="my_channel1" --user="user_12345"

After I run this command it seems to me, the Stream CLI ignores the flags and prompt me for the ChannelID input:

? What is the unique identifier for the channel? ›

The next step is this:

? What type of channel is this? …
❯ Livestream
  Messaging
  Gaming
  Commerce
  Team

So I this last step there is no option to input my custom channel type.

from stream-cli.

bogy0 avatar bogy0 commented on May 29, 2024

But i created a pull request which I think will solves this issue: #56

from stream-cli.

SeniYG avatar SeniYG commented on May 29, 2024

Hi,

Thanks for those details and PR.
@ferhatelmas, could you help with this?

from stream-cli.

Related Issues (20)

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.